Пример #1
0
 /**
  * Execute the current query and return the total number of results.
  *
  * @return int
  */
 public function count()
 {
     $total = $this->runner->getCachedTotal($this->query);
     if (null === $total) {
         $total = $this->runner->total($this->query);
         $this->runner->setCachedTotal($this->query, $total);
     }
     return $total;
 }