src/Support/DriverManager.php
protected function validateDriver($driver)
    {
        $interface = $this->interface();

        if (! (new ReflectionClass($driver))->implementsInterface($interface)) {
            throw new InvalidDriverException(get_class($driver)." does not implement {$interface}");
        }

        return $driver;
    }
protected function validateDriver($driver)
    {
        $interface = $this->interface();

        if (! (new ReflectionClass($driver))->implementsInterface($interface)) {
            throw new InvalidDriverException(get_class($driver)." does not implement {$interface}");
        }

        return $driver;
    }
protected function validateDriver ( $ driver ) { $ interface = $ this -> interface ( ) ; if ( ! ( new ReflectionClass ( $ driver ) ) -> implementsInterface ( $ interface ) ) { throw new InvalidDriverException ( get_class ( $ driver ) . " does not implement {$interface}" ) ; } return $ driver ; }
Validate driver implements the proper interface.

@param  mixed  $driver
@return mixed

@throws \Nuwave\Lighthouse\Exceptions\InvalidDriverException
Validate driver implements the proper interface .