Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
50 | 1 | public function getWorkspaces() |
|
51 | { |
||
52 | 1 | $response = $this->client->request('GET', self::VERSION . '/workspaces', [ |
|
53 | 1 | 'auth' => [$this->api_key, 'api_token'], |
|
54 | ]); |
||
55 | |||
56 | 1 | return $this->serializer->deserialize($response->getBody(), 'array<Syncer\Dto\Toggl\Workspace>', 'json'); |
|
57 | } |
||
58 | } |
||
59 |