1 | <?php |
||
7 | final class UserResource |
||
8 | { |
||
9 | /** |
||
10 | * @var BunqClient |
||
11 | */ |
||
12 | private $client; |
||
13 | |||
14 | /** |
||
15 | * @param BunqClient $client |
||
16 | */ |
||
17 | public function __construct(BunqClient $client) |
||
21 | |||
22 | /** |
||
23 | * Lists all users within the current session. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | public function listUsers() |
||
31 | |||
32 | /** |
||
33 | * Gets a user its information. |
||
34 | * |
||
35 | * @param integer $id |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getUser($id) |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | private function getResourceEndpoint() |
||
53 | } |
||
54 |