| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class UserEndpoint extends AbstractEndpoint |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @return array|GenericEntity[] |
||
| 10 | */ |
||
| 11 | public function findAll() |
||
| 12 | { |
||
| 13 | $request = new GetJson('/admin/users.json'); |
||
| 14 | $response = $this->send($request); |
||
| 15 | return $this->createCollection($response->get('users')); |
||
|
|
|||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param int $userId |
||
| 20 | * @return GenericEntity |
||
| 21 | */ |
||
| 22 | public function findOne($userId) |
||
| 27 | } |
||
| 28 | } |
||
| 29 |