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);
    }
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);
    }
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 ) ; }
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.
Determine if this path matches a wildcard pattern .