Switch from stdClass to object casting

This commit is contained in:
Kleis Auke Wolthuizen
2017-11-21 17:35:01 +01:00
parent 4f3f82b1ba
commit a4224265d8
10 changed files with 27 additions and 68 deletions

View File

@@ -100,11 +100,7 @@ class DNS implements API
$user = $this->adapter->get('zones/' . $zoneID . '/dns_records', $query, []);
$body = json_decode($user->getBody());
$result = new \stdClass();
$result->result = $body->result;
$result->result_info = $body->result_info;
return $result;
return (object)['result' => $body->result, 'result_info' => $body->result_info];
}
public function getRecordDetails(string $zoneID, string $recordID): \stdClass