1 | <?php |
||
19 | class UserRepository implements UserRepositoryInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var User[] |
||
23 | */ |
||
24 | private $users = []; |
||
25 | private $accountIds = []; |
||
26 | |||
27 | public function __construct() |
||
44 | |||
45 | public function findOneByUsername(string $username): ?User |
||
49 | |||
50 | private function getUsers(): array |
||
62 | |||
63 | public function findUserWithAccount(UserAccountId $userAccountId): ?\OAuth2Framework\Component\Core\User\User |
||
67 | } |
||
68 |
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.