public function setNum($num = 20)
    {
        if (!is_numeric($num) && $num !== self::SEARCH_ALL) {
            throw new \InvalidArgumentException(
                'Argument can only be numeric or "all" to return all results.'
            );
        }
        $this->otherOptions['num'] = $num;

        return $this;
    }
public function setNum($num = 20)
    {
        if (!is_numeric($num) && $num !== self::SEARCH_ALL) {
            throw new \InvalidArgumentException(
                'Argument can only be numeric or "all" to return all results.'
            );
        }
        $this->otherOptions['num'] = $num;

        return $this;
    }
public function setNum ( $ num = 20 ) { if ( ! is_numeric ( $ num ) && $ num !== self :: SEARCH_ALL ) { throw new \ InvalidArgumentException ( 'Argument can only be numeric or "all" to return all results.' ) ; } $ this -> otherOptions [ 'num' ] = $ num ; return $ this ; }
Number of results to return. Default is 20. To return all results in
the search, pass num=all.
@param int $num
@return $this
Number of results to return . Default is 20 . To return all results in the search pass num = all .