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

        if ($webservice === null) {
            return $this->getWebservice();
        }

        $this->_webservice = $webservice;

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

        if ($webservice === null) {
            return $this->getWebservice();
        }

        $this->_webservice = $webservice;

        return $this;
    }
public function webservice ( $ webservice = null ) { if ( $ webservice !== null ) { return $ this -> setWebservice ( $ this -> getName ( ) , $ webservice ) ; } if ( $ webservice === null ) { return $ this -> getWebservice ( ) ; } $ this -> _webservice = $ webservice ; return $ this ; }
Returns an instance of the Webservice used

@param \Muffin\Webservice\Webservice\WebserviceInterface|string|null $webservice The webservice to use
@return $this|\Muffin\Webservice\Webservice\WebserviceInterface
@deprecated 2.0.0 Use setWebservice() and getWebservice() instead.
Returns an instance of the Webservice used