Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function __construct() |
||
28 | { |
||
29 | foreach ($this->getUsers() as $data) { |
||
30 | $user = new User( |
||
31 | $data['username'], |
||
32 | $data['roles'], |
||
33 | $data['account_ids'], |
||
34 | $data['last_login_at'], |
||
35 | $data['last_update_at'] |
||
36 | ); |
||
37 | |||
38 | $this->users[$data['username']] = $user; |
||
39 | foreach ($data['account_ids'] as $account_id) { |
||
40 | $this->accountIds[$account_id] = $user; |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | |||
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.