Skip to content

Commit

Permalink
Allow description & site ID database resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Dec 7, 2021
1 parent 1c1a29e commit 9ece206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ploi/Resources/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function get(int $id = null): Response
return $this->getPloi()->makeAPICall($this->getEndpoint());
}

public function create(string $name, string $user, string $password): Response
public function create(string $name, string $user, string $password, $description = null, $siteId = null): Response
{
// Remove the id
$this->setId(null);
Expand All @@ -58,6 +58,8 @@ public function create(string $name, string $user, string $password): Response
'name' => $name,
'user' => $user,
'password' => $password,
'description' => $description,
'site_id' => $siteId,
]),
];

Expand Down

0 comments on commit 9ece206

Please sign in to comment.