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