예제 #1
0
 public function getDefaultOption($keyOrPath = null)
 {
     return $keyOrPath === null ? $this->defaults : puzzle_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 puzzle_get_path($this->data, $path);
 }