original_string: private static function _validateNumber($num): bool
      {
          if (is_int($num)) {
              return true;
          }
          if (is_string($num) && preg_match('/-?\d+/', $num)) {
              return true;
          }
          return false;
      }
code: private static function _validateNumber($num): bool
      {
          if (is_int($num)) {
              return true;
          }
          if (is_string($num) && preg_match('/-?\d+/', $num)) {
              return true;
          }
          return false;
      }
code_tokens: private static function _validateNumber ( $ num ) : bool { if ( is_int ( $ num ) ) { return true ; } if ( is_string ( $ num ) && preg_match ( '/-?\d+/' , $ num ) ) { return true ; } return false ; }
docstring: Test that number is valid for this context.
  
  @param mixed $num
  @return bool
docstring_tokens: Test that number is valid for this context .