public function setDefaultLimit($limit) { if ($limit < 1) { throw new GridException('Wrong default limit value, should be greater than zero'); } $this->setLimit($limit); $this->defaultLimit = (int) $limit; }