private function settings($setting = null)
{
$path = "sites/{$this->site->id}/environments/{$this->id}/settings";
$response = (array) $this->request()->request($path, ['method' => 'get']);
if (property_exists($response['data'], $setting)) {
return $response['data']->{$setting};
}
return (array) $response['data'];
}