| Total Complexity | 8 | 
| Total Lines | 94 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | class AuthorizationCode implements AuthorizationCodeInterface  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * @var string  | 
            ||
| 15 | */  | 
            ||
| 16 | protected $code;  | 
            ||
| 17 | /**  | 
            ||
| 18 | * @var string  | 
            ||
| 19 | */  | 
            ||
| 20 | protected $scope;  | 
            ||
| 21 | /**  | 
            ||
| 22 | * @var string  | 
            ||
| 23 | */  | 
            ||
| 24 | protected $clientIdentifier;  | 
            ||
| 25 | /**  | 
            ||
| 26 | * @var string  | 
            ||
| 27 | */  | 
            ||
| 28 | protected $resourceOwnerIdentifier;  | 
            ||
| 29 | /**  | 
            ||
| 30 | * @var string|null  | 
            ||
| 31 | */  | 
            ||
| 32 | protected $requestedScope;  | 
            ||
| 33 | /**  | 
            ||
| 34 | * @var string|null  | 
            ||
| 35 | */  | 
            ||
| 36 | protected $redirectUri;  | 
            ||
| 37 | /**  | 
            ||
| 38 | * @var int  | 
            ||
| 39 | */  | 
            ||
| 40 | protected $expiresAt;  | 
            ||
| 41 | |||
| 42 | public function __construct(string $code, string $scope, string $clientIdentifier, string $resourceOwnerIdentifier,  | 
            ||
| 43 | 2 | int $expiresAt, ?string $requestedScope = null, ?string $redirectUri = null)  | 
            |
| 44 |     { | 
            ||
| 45 | $this->code = $code;  | 
            ||
| 46 | 2 | $this->scope = $scope;  | 
            |
| 47 | 2 | $this->clientIdentifier = $clientIdentifier;  | 
            |
| 48 | 2 | $this->resourceOwnerIdentifier = $resourceOwnerIdentifier;  | 
            |
| 49 | 2 | $this->expiresAt = $expiresAt;  | 
            |
| 50 | 2 | $this->requestedScope = $requestedScope;  | 
            |
| 51 | 2 | $this->redirectUri = $redirectUri;  | 
            |
| 52 | 2 | }  | 
            |
| 53 | 2 | ||
| 54 | /**  | 
            ||
| 55 | * @return string  | 
            ||
| 56 | */  | 
            ||
| 57 | public function getCode(): string  | 
            ||
| 58 | 2 |     { | 
            |
| 59 | return $this->code;  | 
            ||
| 60 | 2 | }  | 
            |
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * @return string  | 
            ||
| 64 | */  | 
            ||
| 65 | public function getScope(): string  | 
            ||
| 66 | 2 |     { | 
            |
| 67 | return $this->scope;  | 
            ||
| 68 | 2 | }  | 
            |
| 69 | |||
| 70 | /**  | 
            ||
| 71 | * @return string  | 
            ||
| 72 | */  | 
            ||
| 73 | public function getClientIdentifier(): string  | 
            ||
| 76 | 1 | }  | 
            |
| 77 | |||
| 78 | /**  | 
            ||
| 79 | * @return string  | 
            ||
| 80 | */  | 
            ||
| 81 | public function getResourceOwnerIdentifier(): string  | 
            ||
| 82 | 1 |     { | 
            |
| 83 | return $this->resourceOwnerIdentifier;  | 
            ||
| 84 | 1 | }  | 
            |
| 85 | |||
| 86 | public function isExpired(): bool  | 
            ||
| 89 | }  | 
            ||
| 90 | 1 | ||
| 91 | /**  | 
            ||
| 92 | 1 | * @return null|string  | 
            |
| 93 | */  | 
            ||
| 94 | public function getRequestedScope(): ?string  | 
            ||
| 97 | }  | 
            ||
| 98 | 1 | ||
| 99 | /**  | 
            ||
| 100 | 1 | * @return null|string  | 
            |
| 101 | */  | 
            ||
| 102 | public function getRedirectUri(): ?string  | 
            ||
| 105 | }  | 
            ||
| 106 | }  |