src/Api/BaseQuery.php
public function setLimit(int $limit = null)
    {
        if (null !== $limit && ($limit < 1 || $limit > 1000)) {
            throw new \RangeException(\sprintf(
                'Limit value must be between 0 and 1000, "%d" given.',
                $limit
            ));
        }

        $this->limit = $limit;

        return $this;
    }
public function setLimit(int $limit = null)
    {
        if (null !== $limit && ($limit < 1 || $limit > 1000)) {
            throw new \RangeException(\sprintf(
                'Limit value must be between 0 and 1000, "%d" given.',
                $limit
            ));
        }

        $this->limit = $limit;

        return $this;
    }
public function setLimit ( int $ limit = null ) { if ( null !== $ limit && ( $ limit < 1 || $ limit > 1000 ) ) { throw new \ RangeException ( \ sprintf ( 'Limit value must be between 0 and 1000, "%d" given.' , $ limit ) ) ; } $ this -> limit = $ limit ; return $ this ; }
Set the maximum number of results to retrieve. To reset set to NULL;.

@param int|null $limit The maximum number of results to retrieve, must be between 1 and 1000 or null

@throws \RangeException If $maxArguments is not withing the specified range

@return $this
Set the maximum number of results to retrieve . To reset set to NULL ; .