/** * Set max per page count * * @param int $perPage * @return Pager */ public function setPerPage($perPage = 10) { if ($this->collection instanceof \Magelight\Db\Collection) { $this->collection->setLimit($perPage); } $this->perPage = $perPage; return $this; }