Updated AuthCodeEntity

This commit is contained in:
Alex Bilbie 2015-04-05 21:57:04 +01:00
parent d468cbf600
commit a0d5d5817b
2 changed files with 30 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
namespace League\OAuth2\Server\Entities; namespace League\OAuth2\Server\Entities;
use League\OAuth2\Server\Entities\Interfaces\AuthCodeInterface; use League\OAuth2\Server\Entities\Interfaces\AuthCodeEntityInterface;
use League\OAuth2\Server\Entities\Traits\EntityTrait; use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\TokenEntityTrait; use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
@ -9,7 +9,25 @@ use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
* Class AuthCodeEntity * Class AuthCodeEntity
* @package League\OAuth2\Server * @package League\OAuth2\Server
*/ */
class AuthCodeEntity implements AuthCodeInterface class AuthCodeEntity implements AuthCodeEntityInterface
{ {
use EntityTrait, TokenEntityTrait; use EntityTrait, TokenEntityTrait;
protected $redirectUri;
/**
* @return string
*/
public function getRedirectUri()
{
return $this->redirectUri;
}
/**
* @param string $uri
*/
public function setRedirectUri($uri)
{
$this->redirectUri = $uri;
}
} }

View File

@ -1,7 +1,16 @@
<?php <?php
namespace League\OAuth2\Server\Entities\Interfaces; namespace League\OAuth2\Server\Entities\Interfaces;
interface AuthCodeInterface extends TokenInterface interface AuthCodeEntityInterface extends TokenInterface
{ {
/**
* @return string
*/
public function getRedirectUri();
/**
* @param string $uri
*/
public function setRedirectUri($uri);
} }