Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 2 | public function NewContainer (string $template = '') : Container { |
|
24 | 2 | $response = Request::post("https://api.csfcloud.com/container?key=" . urlencode($this->keymanager->GetServerKey())) |
|
25 | 2 | ->sendsJson()->expectsJson()->body(json_encode(["template"=>$template]))->send(); |
|
26 | 2 | return new Container($this->keymanager, $response->body->id); |
|
27 | } |
||
29 | } |