| Total Complexity | 6 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class RefreshToken implements RefreshTokenInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $token; |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $scope; |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $clientIdentifier; |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $resourceOwnerIdentifier; |
||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | protected $expiresAt; |
||
| 34 | |||
| 35 | public function __construct(string $token, string $scope, string $clientIdentifier, string $resourceOwnerIdentifier, |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getToken(): string |
||
| 49 | { |
||
| 50 | return $this->token; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getScope(): string |
||
| 57 | { |
||
| 58 | return $this->scope; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | 1 | */ |
|
| 64 | public function getClientIdentifier(): string |
||
| 65 | 1 | { |
|
| 66 | 1 | return $this->clientIdentifier; |
|
| 67 | 1 | } |
|
| 68 | |||
| 69 | 1 | /** |
|
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | 1 | public function getResourceOwnerIdentifier(): string |
|
| 73 | { |
||
| 74 | 1 | return $this->resourceOwnerIdentifier; |
|
| 75 | 1 | } |
|
| 76 | 1 | ||
| 77 | 1 | public function isExpired(): bool |
|
| 80 | } |
||
| 81 | } |