original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Number of results to return. Default is 20. To return all results in
  the search, pass num=all.
  @param int $num
  @return $this
docstring_tokens: Number of results to return . Default is 20 . To return all results in the search pass num = all .