1 | <?php |
||
22 | class CreateAuthorizationCode |
||
23 | { |
||
24 | private $authorizationCodeId; |
||
25 | private $clientId; |
||
26 | private $userAccountId; |
||
27 | private $queryParameter; |
||
28 | private $redirectUri; |
||
29 | private $expiresAt; |
||
30 | private $parameter; |
||
31 | private $metadata; |
||
32 | private $resourceServerId; |
||
33 | |||
34 | public function __construct(AuthorizationCodeId $authorizationCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameter, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameter, DataBag $metadata, ?ResourceServerId $resourceServerId) |
||
46 | |||
47 | public function getAuthorizationCodeId(): AuthorizationCodeId |
||
51 | |||
52 | public function getClientId(): ClientId |
||
56 | |||
57 | public function getUserAccountId(): UserAccountId |
||
61 | |||
62 | public function getQueryParameter(): array |
||
66 | |||
67 | public function getRedirectUri(): string |
||
71 | |||
72 | public function getExpiresAt(): \DateTimeImmutable |
||
76 | |||
77 | public function getParameter(): DataBag |
||
81 | |||
82 | public function getMetadata(): DataBag |
||
86 | |||
87 | public function getResourceServerId(): ?ResourceServerId |
||
91 | } |
||
92 |
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.