mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Updated AuthCodeEntity
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| <?php | ||||
| 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\TokenEntityTrait; | ||||
|  | ||||
| @@ -9,7 +9,25 @@ use League\OAuth2\Server\Entities\Traits\TokenEntityTrait; | ||||
|  * Class AuthCodeEntity | ||||
|  * @package League\OAuth2\Server | ||||
|  */ | ||||
| class AuthCodeEntity implements AuthCodeInterface | ||||
| class AuthCodeEntity implements AuthCodeEntityInterface | ||||
| { | ||||
|     use EntityTrait, TokenEntityTrait; | ||||
|  | ||||
|     protected $redirectUri; | ||||
|  | ||||
|     /** | ||||
|      * @return string | ||||
|      */ | ||||
|     public function getRedirectUri() | ||||
|     { | ||||
|         return $this->redirectUri; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param string $uri | ||||
|      */ | ||||
|     public function setRedirectUri($uri) | ||||
|     { | ||||
|         $this->redirectUri = $uri; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -1,7 +1,16 @@ | ||||
| <?php | ||||
|  | ||||
| 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); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user