original_string: public function match($var)
      {
          $ret = false;
  
          foreach ($this->_types as $type) {
              if (array_search($type, array("*", "mixed")) !== false) {
                  $ret = true;
              } elseif (array_search($type, array("number", "numeric")) !== false) {
                  $ret = is_numeric($var);
              } elseif (array_search($type, array("bool", "boolean")) !== false) {
                  $ret = is_bool($var);
              } elseif ($type == "string") {
                  $ret = is_string($var);
              } elseif ($type == "array") {
                  $ret = is_array($var);
              } elseif ($type == "object") {
                  $ret = is_object($var);
              } elseif ($type == "resource") {
                  $ret = is_resource($var);
              } elseif ($type == "function") {
                  $ret = is_callable($var);
              } elseif ($type == "scalar") {
                  $ret = is_scalar($var);
              } else {
                  $ret = is_a($var, $type);
              }
  
              if ($ret) {
                  break;
              }
          }
  
          return $ret;
      }
code: public function match($var)
      {
          $ret = false;
  
          foreach ($this->_types as $type) {
              if (array_search($type, array("*", "mixed")) !== false) {
                  $ret = true;
              } elseif (array_search($type, array("number", "numeric")) !== false) {
                  $ret = is_numeric($var);
              } elseif (array_search($type, array("bool", "boolean")) !== false) {
                  $ret = is_bool($var);
              } elseif ($type == "string") {
                  $ret = is_string($var);
              } elseif ($type == "array") {
                  $ret = is_array($var);
              } elseif ($type == "object") {
                  $ret = is_object($var);
              } elseif ($type == "resource") {
                  $ret = is_resource($var);
              } elseif ($type == "function") {
                  $ret = is_callable($var);
              } elseif ($type == "scalar") {
                  $ret = is_scalar($var);
              } else {
                  $ret = is_a($var, $type);
              }
  
              if ($ret) {
                  break;
              }
          }
  
          return $ret;
      }
code_tokens: public function match ( $ var ) { $ ret = false ; foreach ( $ this -> _types as $ type ) { if ( array_search ( $ type , array ( "*" , "mixed" ) ) !== false ) { $ ret = true ; } elseif ( array_search ( $ type , array ( "number" , "numeric" ) ) !== false ) { $ ret = is_numeric ( $ var ) ; } elseif ( array_search ( $ type , array ( "bool" , "boolean" ) ) !== false ) { $ ret = is_bool ( $ var ) ; } elseif ( $ type == "string" ) { $ ret = is_string ( $ var ) ; } elseif ( $ type == "array" ) { $ ret = is_array ( $ var ) ; } elseif ( $ type == "object" ) { $ ret = is_object ( $ var ) ; } elseif ( $ type == "resource" ) { $ ret = is_resource ( $ var ) ; } elseif ( $ type == "function" ) { $ ret = is_callable ( $ var ) ; } elseif ( $ type == "scalar" ) { $ ret = is_scalar ( $ var ) ; } else { $ ret = is_a ( $ var , $ type ) ; } if ( $ ret ) { break ; } } return $ ret ; }
docstring: Does the variable match with this descriptor?
  
  @param mixed $var Arbitrary variable
  
  @return boolean
docstring_tokens: Does the variable match with this descriptor?