Total Complexity | 4 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class MeController extends CafeApiController |
||
12 | { |
||
13 | /** |
||
14 | * Me constructor |
||
15 | * @param string $apiUrl |
||
16 | * @param string $email |
||
17 | * @param string $password |
||
18 | */ |
||
19 | public function __construct(string $apiUrl, string $email, string $password) |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return Me |
||
26 | */ |
||
27 | public function me(): MeController |
||
28 | { |
||
29 | $this->request( |
||
30 | "GET", |
||
31 | "/me" |
||
32 | ); |
||
33 | |||
34 | return $this; |
||
|
|||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param array $fields |
||
39 | * @return Me |
||
40 | */ |
||
41 | public function update(array $fields): MeController |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param array $files |
||
54 | * @return Me |
||
55 | */ |
||
56 | public function photo(array $files): MeController |
||
68 | } |
||
69 | } |