public function webservice($name, WebserviceInterface $webservice = null)
    {
        if ($webservice !== null) {
            $this->setWebservice($name, $webservice);
        }

        return $this->getWebservice($name);
    }
public function webservice($name, WebserviceInterface $webservice = null)
    {
        if ($webservice !== null) {
            $this->setWebservice($name, $webservice);
        }

        return $this->getWebservice($name);
    }
public function webservice ( $ name , WebserviceInterface $ webservice = null ) { if ( $ webservice !== null ) { $ this -> setWebservice ( $ name , $ webservice ) ; } return $ this -> getWebservice ( $ name ) ; }
Set or get a instance of a webservice

@param string $name The name of the webservice
@param \Muffin\Webservice\Webservice\WebserviceInterface|null $webservice The instance of the webservice you'd like to set
@return $this|\Muffin\Webservice\Webservice\WebserviceInterface
@deprecated 2.0.0 Use setWebservice() or getWebservice() instead.
Set or get a instance of a webservice