| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | public function deploy( |
||
| 56 | string $environmentFromUuid, |
||
| 57 | string $environmentToUuid, |
||
| 58 | ?string $commitMessage = null |
||
| 59 | ): OperationResponse { |
||
| 60 | |||
| 61 | $options = [ |
||
| 62 | 'json' => [ |
||
| 63 | 'source' => $environmentFromUuid, |
||
| 64 | 'message' => $commitMessage, |
||
| 65 | ], |
||
| 66 | ]; |
||
| 67 | |||
| 68 | return new OperationResponse( |
||
| 69 | $this->client->request( |
||
| 70 | 'post', |
||
| 71 | "/environments/$environmentToUuid/code", |
||
| 72 | $options |
||
| 73 | ) |
||
| 77 |