/** * Returns total count of data. * @return int */ public function getCount() { if ($this->count === NULL) { $this->count = $this->model->getCount(); } return $this->count; }
public function getCount() { return $this->dataSource->getCount(); }