Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ApiFactory |
||
14 | { |
||
15 | private $client; |
||
16 | |||
17 | public function __construct(Client $client) |
||
18 | { |
||
19 | $this->client = $client; |
||
20 | } |
||
21 | |||
22 | public function clientApi(): ClientApi |
||
23 | { |
||
24 | return new ClientApi($this->client); |
||
25 | } |
||
26 | |||
27 | public function tagApi(): Tag |
||
28 | { |
||
29 | return new Tag($this->client); |
||
30 | } |
||
31 | |||
32 | public function workspaceApi(): Workspace |
||
35 | } |
||
36 | } |
||
37 |