fetchAll() public méthode

public fetchAll ( )
 /**
  * @param int $limit
  * @param int $offset
  * @return array
  */
 public function getData($limit = NULL, $offset = NULL)
 {
     if ($limit !== NULL) {
         $this->source->limit($limit, $offset);
     }
     return $this->source->fetchAll();
 }
 /**
  * Get the data
  * @return array
  */
 public function getData()
 {
     return $this->data ?: $this->data_source->fetchAll();
 }
 private function fetchAll(Selection $selection)
 {
     if ((bool) $this->as_pairs) {
         return $selection->fetchPairs($this->pairs[0], $this->pairs[1]);
     } else {
         return $selection->fetchAll();
     }
 }