public function setWebservice($alias, $webservice)
    {
        $connection = $this->getConnection();
        if (!$connection) {
            throw new UnexpectedDriverException(__('No driver has been defined for this endpoint'));
        }

        $connection->setWebservice($alias, $webservice);
        $this->_webservice = $connection->getWebservice($alias);

        return $this;
    }
public function setWebservice($alias, $webservice)
    {
        $connection = $this->getConnection();
        if (!$connection) {
            throw new UnexpectedDriverException(__('No driver has been defined for this endpoint'));
        }

        $connection->setWebservice($alias, $webservice);
        $this->_webservice = $connection->getWebservice($alias);

        return $this;
    }
public function setWebservice ( $ alias , $ webservice ) { $ connection = $ this -> getConnection ( ) ; if ( ! $ connection ) { throw new UnexpectedDriverException ( __ ( 'No driver has been defined for this endpoint' ) ) ; } $ connection -> setWebservice ( $ alias , $ webservice ) ; $ this -> _webservice = $ connection -> getWebservice ( $ alias ) ; return $ this ; }
Set the webservice instance to be used for this endpoint

@param string $alias Alias for the webservice
@param \Muffin\Webservice\Webservice\WebserviceInterface $webservice The webservice instance
@return $this
@throws \Muffin\Webservice\Exception\UnexpectedDriverException When no driver exists for the endpoint
Set the webservice instance to be used for this endpoint