public function driver(AbstractDriver $driver = null)
    {
        if ($driver === null) {
            return $this->getDriver();
        }

        return $this->setDriver($driver);
    }
public function driver(AbstractDriver $driver = null)
    {
        if ($driver === null) {
            return $this->getDriver();
        }

        return $this->setDriver($driver);
    }
public function driver ( AbstractDriver $ driver = null ) { if ( $ driver === null ) { return $ this -> getDriver ( ) ; } return $ this -> setDriver ( $ driver ) ; }
Set the driver to use

@param \Muffin\Webservice\AbstractDriver|null $driver The driver to use
@return \Muffin\Webservice\AbstractDriver|$this
@deprecated 2.0.0 Use setDriver() and getDriver() instead.
Set the driver to use