示例#1
0
 public function getDefaultOption($keyOrPath = null)
 {
     return $keyOrPath === null ? $this->defaults : \GuzzleHttp\get_path($this->defaults, $keyOrPath);
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 /**
  * 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);
 }