Total Complexity | 12 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Project |
||
14 | { |
||
15 | private $http; |
||
16 | |||
17 | public function __construct(Client $http) |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return ProjectDtoImpl[] |
||
24 | */ |
||
25 | public function projects(string $workspaceId, array $params = []): array |
||
46 | ); |
||
47 | } |
||
48 | |||
49 | public function create(string $workspaceId, ProjectRequest $request): ProjectDtoImpl |
||
50 | { |
||
51 | $data = $this->http->post(" /workspaces/$workspaceId/projects", $request->toArray()); |
||
52 | |||
53 | return ProjectDtoImpl::fromArray($data); |
||
54 | } |
||
55 | |||
56 | public function delete(string $workspaceId, string $projectId): void |
||
59 | } |
||
60 | } |
||
61 |