public function fetch() { $selector = new Selector($this->data); if ($this->limit > 1) { return $selector->getList($this->path, $this->default); } return $selector->getOne($this->path, $this->default); }
/** * [getOne description] * @param string $path [description] * @param [type] $default [description] * @return [type] [description] */ private function getOne($path, $default) { $selector = new Selector($this->data); return $selector->getOne($path, $default); }