public function getDefaultOption($keyOrPath = null) { return $keyOrPath === null ? $this->defaults : \GuzzleHttp\get_path($this->defaults, $keyOrPath); }
/** * Get a value from the collection using a path syntax to retrieve nested * data. * * @param string $path Path to traverse and retrieve a value from * * @return mixed|null */ public function getPath($path) { return \GuzzleHttp\get_path($this->data, $path); }
/** * Getter for individual configuration option * @param string $keyOrPath * @param mixed $defaultValue * @return mixed */ public function getOption($keyOrPath, $defaultValue = null) { return $keyOrPath === null ? $defaultValue : \GuzzleHttp\get_path($this->config, $keyOrPath); }