public function setResponse(CNabuHTTPResponse $nb_response = null) : CNabuProviderInterfaceFactoryAdapter
    {
        if ($this->discoverInterface()) {
            $this->nb_interface->setResponse($nb_response);
        } else {
            throw new ENabuProviderException(ENabuProviderException::ERROR_INTERFACE_NOT_SETTED);
        }

        return $this;
    }
public function setResponse(CNabuHTTPResponse $nb_response = null) : CNabuProviderInterfaceFactoryAdapter
    {
        if ($this->discoverInterface()) {
            $this->nb_interface->setResponse($nb_response);
        } else {
            throw new ENabuProviderException(ENabuProviderException::ERROR_INTERFACE_NOT_SETTED);
        }

        return $this;
    }
public function setResponse ( CNabuHTTPResponse $ nb_response = null ) : CNabuProviderInterfaceFactoryAdapter { if ( $ this -> discoverInterface ( ) ) { $ this -> nb_interface -> setResponse ( $ nb_response ) ; } else { throw new ENabuProviderException ( ENabuProviderException :: ERROR_INTERFACE_NOT_SETTED ) ; } return $ this ; }
Pass Response instance to managed interface.
@param CNabuHTTPResponse|null $nb_response Response instance to be passed.
@return CNabuProviderInterfaceFactoryAdapter Returns self pointer to grant chained setters.
@throws ENabuProviderException Raises an exception if the Interface is not setted.
Pass Response instance to managed interface .