示例#1
0
 public function setDefaultOption($keyOrPath, $value)
 {
     puzzle_set_path($this->defaults, $keyOrPath, $value);
 }
示例#2
0
 /**
  * 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)
 {
     puzzle_set_path($this->data, $path, $value);
 }