public function setSandbox($value) { if (is_bool($value)) { $this->config->setSandbox($value); } else { throw new \Exception($value . ' is of type ' . gettype($value) . ' and should be a boolean value'); } }