public function setLimit($limit = 100)
    {
        // the limit must be within the boundaries of the service
        if ($limit <= 0 || $limit > 200) {
            throw new \OutOfBoundsException('The limit must be within 0 and 200.');
        }

        $this->defaultOptions['limit'] = (integer) $limit;

        return $this;
    }
public function setLimit($limit = 100)
    {
        // the limit must be within the boundaries of the service
        if ($limit <= 0 || $limit > 200) {
            throw new \OutOfBoundsException('The limit must be within 0 and 200.');
        }

        $this->defaultOptions['limit'] = (integer) $limit;

        return $this;
    }
public function setLimit ( $ limit = 100 ) { // the limit must be within the boundaries of the service if ( $ limit <= 0 || $ limit > 200 ) { throw new \ OutOfBoundsException ( 'The limit must be within 0 and 200.' ) ; } $ this -> defaultOptions [ 'limit' ] = ( integer ) $ limit ; return $ this ; }
Set the limit

@param integer $limit

@throws \OutOfBoundsException

@return Tunes
Set the limit