/** * Count Pagination Data Source * * @return integer * Number of elements present in given source * * @TODO Optimize to not query database twice */ public function count() { return count($this->em->fetchAll()); }
/** * Reset the Routes Storage, by formatting or cleaning it * * @return integer */ public function reset() { return $this->manager->delete()->rowCount(); }