fix return type
This commit is contained in:
@@ -50,7 +50,7 @@ class Accounts implements API
|
|||||||
return $this->body->result;
|
return $this->body->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDomainDetails(string $accountID, string $domainName): array
|
public function getDomainDetails(string $accountID, string $domainName): \stdClass
|
||||||
{
|
{
|
||||||
$response = $this->adapter->get('accounts/' . $accountID . '/registrar/domains/' . $domainName);
|
$response = $this->adapter->get('accounts/' . $accountID . '/registrar/domains/' . $domainName);
|
||||||
|
|
||||||
@@ -59,14 +59,14 @@ class Accounts implements API
|
|||||||
return $this->body->result;
|
return $this->body->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function lockDomain(string $accountID, string $domainName): array
|
public function lockDomain(string $accountID, string $domainName): \stdClass
|
||||||
{
|
{
|
||||||
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => true]);
|
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => true]);
|
||||||
$this->body = json_decode($response->getBody());
|
$this->body = json_decode($response->getBody());
|
||||||
return $this->body;
|
return $this->body;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function unlockDomain(string $accountID, string $domainName): array
|
public function unlockDomain(string $accountID, string $domainName): \stdClass
|
||||||
{
|
{
|
||||||
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => false]);
|
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => false]);
|
||||||
$this->body = json_decode($response->getBody());
|
$this->body = json_decode($response->getBody());
|
||||||
|
|||||||
Reference in New Issue
Block a user