| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | interface AccessToken extends \JsonSerializable |
||
| 22 | { |
||
| 23 | public function getId(): AccessTokenId; |
||
| 24 | |||
| 25 | public function getExpiresAt(): \DateTimeImmutable; |
||
| 26 | |||
| 27 | public function hasExpired(): bool; |
||
| 28 | |||
| 29 | public function getExpiresIn(): int; |
||
| 30 | |||
| 31 | public function getResourceOwnerId(): ResourceOwnerId; |
||
| 32 | |||
| 33 | public function getClientId(): ClientId; |
||
| 34 | |||
| 35 | public function getParameter(): DataBag; |
||
| 36 | |||
| 37 | public function getMetadata(): DataBag; |
||
| 38 | |||
| 39 | public function isRevoked(): bool; |
||
| 40 | |||
| 41 | public function markAsRevoked(): void; |
||
| 42 | |||
| 43 | public function getResourceServerId(): ?ResourceServerId; |
||
| 44 | |||
| 45 | public function getResponseData(): array; |
||
| 46 | } |
||
| 47 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@returndoc comment to communicate to implementors of these methods what they are expected to return.