Connector.php
private function addDisabledCommand(AbstractDriver $driver)
    {
        foreach ($this->commands as $name => $command) {
            $interface = $this->getInterfaceByCmd($name);
            if (!$driver instanceof $interface) {
                $driver->addDisabledCmd($name);
            }
        }

        return $this;
    }
private function addDisabledCommand(AbstractDriver $driver)
    {
        foreach ($this->commands as $name => $command) {
            $interface = $this->getInterfaceByCmd($name);
            if (!$driver instanceof $interface) {
                $driver->addDisabledCmd($name);
            }
        }

        return $this;
    }
private function addDisabledCommand ( AbstractDriver $ driver ) { foreach ( $ this -> commands as $ name => $ command ) { $ interface = $ this -> getInterfaceByCmd ( $ name ) ; if ( ! $ driver instanceof $ interface ) { $ driver -> addDisabledCmd ( $ name ) ; } } return $ this ; }
add Disabled Command.

@param AbstractDriver $driver

@return $this
add Disabled Command .