Merge branch 'master' into 177-missing-support=for=custom-hostname-properties

This commit is contained in:
Phil Young
2021-06-22 10:44:00 +01:00
committed by GitHub
3 changed files with 50 additions and 0 deletions

View File

@@ -192,4 +192,16 @@ class CustomHostnames implements API
$this->body = json_decode($zone->getBody());
return $this->body;
}
/**
* @param string $zoneID
* @return \stdClass
*/
public function getFallbackOrigin(string $zoneID): \stdClass
{
$zone = $this->adapter->get('zones/'.$zoneID.'/custom_hostnames/fallback_origin');
$this->body = json_decode($zone->getBody());
return $this->body->result;
}
}