public function pagesize($pagesize = null)
    {
        if ($pagesize === null) {
            return $this->options['pagesize'];
        } else {
            $this->options['pagesize'] = intval($pagesize);
            return $this;
        }
    }
public function pagesize($pagesize = null)
    {
        if ($pagesize === null) {
            return $this->options['pagesize'];
        } else {
            $this->options['pagesize'] = intval($pagesize);
            return $this;
        }
    }
public function pagesize ( $ pagesize = null ) { if ( $ pagesize === null ) { return $ this -> options [ 'pagesize' ] ; } else { $ this -> options [ 'pagesize' ] = intval ( $ pagesize ) ; return $ this ; } }
Set the items pagesize

@param  int $pagesize
@return Paginator|int
Set the items pagesize