1 | <?php |
||
20 | class UserAccount implements UserAccountInterface |
||
21 | { |
||
22 | private $userAccountId; |
||
23 | private $data = []; |
||
24 | |||
25 | public function __construct(UserAccountId $userAccountId, array $data) |
||
30 | |||
31 | public function getUserAccountId(): UserAccountId |
||
35 | |||
36 | public function getPublicId(): ResourceOwnerId |
||
40 | |||
41 | public function has(string $key): bool |
||
45 | |||
46 | public function get(string $key) |
||
54 | } |
||
55 |
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.