public function getTotalTime() { $data = $this->_response->getData(); return isset($data['took']) ? $data['took'] : 0; }
/** * Return the total amount of time for the last search. * * @return int */ public function getTotalTime() { if (isset($this->results)) { return $this->results->getTotalTime(); } }