| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class ApiFactory |
||
| 16 | { |
||
| 17 | private $client; |
||
| 18 | |||
| 19 | public function __construct(Client $client) |
||
| 20 | { |
||
| 21 | $this->client = $client; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function clientApi(): ClientApi |
||
| 25 | { |
||
| 26 | return new ClientApi($this->client); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function projectApi(): Project |
||
| 30 | { |
||
| 31 | return new Project($this->client); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function tagApi(): Tag |
||
| 35 | { |
||
| 36 | return new Tag($this->client); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function taskApi(): Task |
||
| 40 | { |
||
| 41 | return new Task($this->client); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function workspaceApi(): Workspace |
||
| 47 | } |
||
| 48 | } |
||
| 49 |