public function setService(IService $service)
    {
        $this->service = $service;
        $this->absoluteServiceUri = $service->getHost()->getAbsoluteServiceUri()->getUrlAsString();
        $this->absoluteServiceUriWithSlash = rtrim($this->absoluteServiceUri, '/') . '/';
    }
public function setService(IService $service)
    {
        $this->service = $service;
        $this->absoluteServiceUri = $service->getHost()->getAbsoluteServiceUri()->getUrlAsString();
        $this->absoluteServiceUriWithSlash = rtrim($this->absoluteServiceUri, '/') . '/';
    }
public function setService ( IService $ service ) { $ this -> service = $ service ; $ this -> absoluteServiceUri = $ service -> getHost ( ) -> getAbsoluteServiceUri ( ) -> getUrlAsString ( ) ; $ this -> absoluteServiceUriWithSlash = rtrim ( $ this -> absoluteServiceUri , '/' ) . '/' ; }
Gets the data service instance.

@return void
Gets the data service instance .