Matcher/ParallelMatcher.php
public function match($input)
    {
       
        $noMatch = true;
        foreach ($this->matchers as $matcher) {
            if ($matcher->noMatch()) {
                continue;
            }
            if ($matcher->match($input)) {
                $noMatch = false;
            }
            if ($matcher->matchFound()) {
                $this->matched[] = $matcher->matched;
                $this->resetMatchers();
                break;
            }
        }
        if ($noMatch) {
            return false;
        }
        return true;
    }
public function match($input)
    {
       
        $noMatch = true;
        foreach ($this->matchers as $matcher) {
            if ($matcher->noMatch()) {
                continue;
            }
            if ($matcher->match($input)) {
                $noMatch = false;
            }
            if ($matcher->matchFound()) {
                $this->matched[] = $matcher->matched;
                $this->resetMatchers();
                break;
            }
        }
        if ($noMatch) {
            return false;
        }
        return true;
    }
public function match ( $ input ) { $ noMatch = true ; foreach ( $ this -> matchers as $ matcher ) { if ( $ matcher -> noMatch ( ) ) { continue ; } if ( $ matcher -> match ( $ input ) ) { $ noMatch = false ; } if ( $ matcher -> matchFound ( ) ) { $ this -> matched [ ] = $ matcher -> matched ; $ this -> resetMatchers ( ) ; break ; } } if ( $ noMatch ) { return false ; } return true ; }
Attempts to match an input token with
the patterns

@param any|Token $input
Attempts to match an input token with the patterns