1 | <?php |
||
22 | class CreateAccessToken |
||
23 | { |
||
24 | private $accessTokenId; |
||
25 | private $resourceOwnerId; |
||
26 | private $clientId; |
||
27 | private $parameter; |
||
28 | private $metadata; |
||
29 | private $expiresAt; |
||
30 | private $resourceServerId; |
||
31 | |||
32 | public function __construct(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameter, DataBag $metadata, \DateTimeImmutable $expiresAt, ?ResourceServerId $resourceServerId) |
||
42 | |||
43 | public function getAccessTokenId(): AccessTokenId |
||
47 | |||
48 | public function getResourceOwnerId(): ResourceOwnerId |
||
52 | |||
53 | public function getClientId(): ClientId |
||
57 | |||
58 | public function getParameter(): DataBag |
||
62 | |||
63 | public function getMetadata(): DataBag |
||
67 | |||
68 | public function getExpiresAt(): \DateTimeImmutable |
||
72 | |||
73 | public function getResourceServerId(): ?ResourceServerId |
||
77 | } |
||
78 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.