| Total Complexity | 3 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Code extends CloudApiBase |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Shows all code branches and tags in an application. |
||
| 18 | * |
||
| 19 | * @return BranchesResponse<BranchResponse> |
||
| 20 | */ |
||
| 21 | public function getAll(string $applicationUuid): BranchesResponse |
||
| 22 | { |
||
| 23 | return new BranchesResponse( |
||
| 24 | $this->client->request( |
||
| 25 | 'get', |
||
| 26 | "/applications/$applicationUuid/code" |
||
| 27 | ) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Deploys a code branch/tag to an environment. |
||
| 33 | */ |
||
| 34 | public function switch(string $environmentUuid, string $branch): OperationResponse |
||
| 48 | ) |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Deploys code from one environment to another environment. |
||
| 54 | */ |
||
| 55 | public function deploy( |
||
| 77 |