Modifica creazione record: ritorno del oggetto record

This commit is contained in:
ArmandoCaprio
2019-10-23 12:07:59 +02:00
committed by GitHub
parent 7276b61e20
commit 39ec310026

View File

@@ -33,7 +33,7 @@ class DNS implements API
* @param bool $proxied * @param bool $proxied
* @param string $priority * @param string $priority
* @param array $data * @param array $data
* @return bool * @return \stdClass
*/ */
public function addRecord( public function addRecord(
string $zoneID, string $zoneID,
@@ -68,11 +68,7 @@ class DNS implements API
$this->body = json_decode($user->getBody()); $this->body = json_decode($user->getBody());
if (isset($this->body->result->id)) { return $this->body->result;
return true;
}
return false;
} }
public function listRecords( public function listRecords(