public function getDefaultPerPage() { if (!in_array($this->defaultPerPage, $this->perPageList)) { $this->defaultPerPage = $this->perPageList[0]; } return $this->defaultPerPage; }