public function setDefaultOption($keyOrPath, $value) { \GuzzleHttp\set_path($this->defaults, $keyOrPath, $value); }
/** * Set a value into a nested array key. Keys will be created as needed to * set the value. * * @param string $path Path to set * @param mixed $value Value to set at the key * * @throws \RuntimeException when trying to setPath using a nested path * that travels through a scalar value */ public function setPath($path, $value) { \GuzzleHttp\set_path($this->data, $path, $value); }
/** * Setter for individual configuration option * @param string $keyOrPath * @param mixed $value * @return $this */ public function setOption($keyOrPath, $value) { \GuzzleHttp\set_path($this->config, $keyOrPath, $value); return $this; }