Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | interface User |
||
19 | { |
||
20 | public function getLastLoginAt(): ?int; |
||
21 | |||
22 | public function getLastUpdateAt(): ?int; |
||
23 | |||
24 | /** |
||
25 | * @return string[] |
||
26 | */ |
||
27 | public function getAccountIds(UserAccountId $userAccountId): array; |
||
28 | |||
29 | public function hasAccountId(UserAccountId $userAccountId): bool; |
||
30 | } |
||
31 |
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
@return
doc comment to communicate to implementors of these methods what they are expected to return.