public function setEngine($engine) {
        if (!in_array($engine, $this->getSupportedEngines())) {
            throw new EngineNotSupportedException(sprintf('Engine [%s] is not supported', $engine));
        }

        $this->engine = $engine;
        $this->changeBaseApi();
    }
public function setEngine($engine) {
        if (!in_array($engine, $this->getSupportedEngines())) {
            throw new EngineNotSupportedException(sprintf('Engine [%s] is not supported', $engine));
        }

        $this->engine = $engine;
        $this->changeBaseApi();
    }
public function setEngine ( $ engine ) { if ( ! in_array ( $ engine , $ this -> getSupportedEngines ( ) ) ) { throw new EngineNotSupportedException ( sprintf ( 'Engine [%s] is not supported' , $ engine ) ) ; } $ this -> engine = $ engine ; $ this -> changeBaseApi ( ) ; }
Set Engine to use, whethere wikipedia or wikiquote
@param string $engine
Set Engine to use whethere wikipedia or wikiquote