src/Matcher/MatcherFactory.php
public function addMatcherDriver(MatcherDriver $driver): void
    {
        if (!in_array($driver, $this->drivers, true)) {
            $this->drivers[] = $driver;

            if ($driver->isAvailable()) {
                foreach ($driver->matcherClassNames() as $className) {
                    $this->driverIndex[$className] = $driver;
                }
            }
        }
    }
public function addMatcherDriver(MatcherDriver $driver): void
    {
        if (!in_array($driver, $this->drivers, true)) {
            $this->drivers[] = $driver;

            if ($driver->isAvailable()) {
                foreach ($driver->matcherClassNames() as $className) {
                    $this->driverIndex[$className] = $driver;
                }
            }
        }
    }
public function addMatcherDriver ( MatcherDriver $ driver ) : void { if ( ! in_array ( $ driver , $ this -> drivers , true ) ) { $ this -> drivers [ ] = $ driver ; if ( $ driver -> isAvailable ( ) ) { foreach ( $ driver -> matcherClassNames ( ) as $ className ) { $ this -> driverIndex [ $ className ] = $ driver ; } } } }
Add a matcher driver.

@param MatcherDriver $driver The matcher driver.
Add a matcher driver .