| Total Complexity | 4 | 
| Total Lines | 57 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | class Me extends CafeApi  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * Me constructor  | 
            ||
| 13 | * @param string $apiUrl  | 
            ||
| 14 | * @param string $email  | 
            ||
| 15 | * @param string $password  | 
            ||
| 16 | */  | 
            ||
| 17 | public function __construct(string $apiUrl, string $email, string $password)  | 
            ||
| 18 |     { | 
            ||
| 19 | parent::__construct($apiUrl, $email, $password);  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @return Me  | 
            ||
| 24 | */  | 
            ||
| 25 | public function me(): Me  | 
            ||
| 26 |     { | 
            ||
| 27 | $this->request(  | 
            ||
| 28 | "GET",  | 
            ||
| 29 | "/me"  | 
            ||
| 30 | );  | 
            ||
| 31 | |||
| 32 | return $this;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @param array $fields  | 
            ||
| 37 | * @return Me  | 
            ||
| 38 | */  | 
            ||
| 39 | public function update(array $fields): Me  | 
            ||
| 40 |     { | 
            ||
| 41 | $this->request(  | 
            ||
| 42 | "PUT",  | 
            ||
| 43 | "/me",  | 
            ||
| 44 | $fields  | 
            ||
| 45 | );  | 
            ||
| 46 | |||
| 47 | return $this;  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * @param array $files  | 
            ||
| 52 | * @return Me  | 
            ||
| 53 | */  | 
            ||
| 54 | public function photo(array $files): Me  | 
            ||
| 66 | }  | 
            ||
| 67 | }  |