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

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

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

@param  integer $limit

@return void
@throws GridException
Set default limit