Progress on server management for users

This commit is contained in:
Dennis Smink
2020-09-22 13:56:34 +02:00
parent 10771165a7
commit 59552cf8e5
42 changed files with 7177 additions and 7461 deletions

View File

@@ -29,6 +29,19 @@ class Server extends Resource
return $this->getPloi()->makeAPICall($this->getEndpoint());
}
public function delete(int $id = null)
{
if ($id) {
$this->setId($id);
}
if ($this->getId()) {
$this->setEndpoint($this->endpoint . '/' . $this->getId());
}
return $this->getPloi()->makeAPICall($this->getEndpoint(), 'delete');
}
public function logs(int $id = null)
{
if ($id) {