src/Charcoal/Source/Pagination.php
public function setNumPerPage($count)
    {
        if (!is_numeric($count)) {
            throw new InvalidArgumentException(
                'Number Per Page must be numeric.'
            );
        }

        $count = (int)$count;
        if ($count < 0) {
            throw new InvalidArgumentException(
                'Number Per Page must be greater than zero.'
            );
        }

        $this->numPerPage = $count;
        return $this;
    }
public function setNumPerPage($count)
    {
        if (!is_numeric($count)) {
            throw new InvalidArgumentException(
                'Number Per Page must be numeric.'
            );
        }

        $count = (int)$count;
        if ($count < 0) {
            throw new InvalidArgumentException(
                'Number Per Page must be greater than zero.'
            );
        }

        $this->numPerPage = $count;
        return $this;
    }
public function setNumPerPage ( $ count ) { if ( ! is_numeric ( $ count ) ) { throw new InvalidArgumentException ( 'Number Per Page must be numeric.' ) ; } $ count = ( int ) $ count ; if ( $ count < 0 ) { throw new InvalidArgumentException ( 'Number Per Page must be greater than zero.' ) ; } $ this -> numPerPage = $ count ; return $ this ; }
Set the number of results per page.

@param  integer $count The number of results to return, per page.
Use 0 to request all results.
@throws InvalidArgumentException If the parameter is not numeric or < 0.
@return self
Set the number of results per page .