original_string: public function matches($pattern, $caseSensitive = null, $flags = null)
      {
          if (null === $caseSensitive) {
              $caseSensitive = false;
          }
          if (null === $flags) {
              $flags = 0;
          }
          if (!$caseSensitive) {
              $flags = $flags | FNM_CASEFOLD;
          }
  
          return fnmatch($pattern, $this->string(), $flags);
      }
code: public function matches($pattern, $caseSensitive = null, $flags = null)
      {
          if (null === $caseSensitive) {
              $caseSensitive = false;
          }
          if (null === $flags) {
              $flags = 0;
          }
          if (!$caseSensitive) {
              $flags = $flags | FNM_CASEFOLD;
          }
  
          return fnmatch($pattern, $this->string(), $flags);
      }
code_tokens: public function matches ( $ pattern , $ caseSensitive = null , $ flags = null ) { if ( null === $ caseSensitive ) { $ caseSensitive = false ; } if ( null === $ flags ) { $ flags = 0 ; } if ( ! $ caseSensitive ) { $ flags = $ flags | FNM_CASEFOLD ; } return fnmatch ( $ pattern , $ this -> string ( ) , $ flags ) ; }
docstring: Determine if this path matches a wildcard pattern.
  
  @param string       $pattern       The pattern to check against.
  @param boolean|null $caseSensitive True if case sensitive.
  @param integer|null $flags         Additional flags.
  
  @return boolean True if this path matches the pattern.
docstring_tokens: Determine if this path matches a wildcard pattern .