You are here

public function AbstractCallback::getHttpResponse in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/PubSubHubbub/AbstractCallback.php \Zend\Feed\PubSubHubbub\AbstractCallback::getHttpResponse()

An instance of a class handling Http Responses. This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Controller\Response\Http.

Return value

HttpResponse|PhpResponse

Overrides CallbackInterface::getHttpResponse

File

vendor/zendframework/zend-feed/src/PubSubHubbub/AbstractCallback.php, line 156

Class

AbstractCallback

Namespace

Zend\Feed\PubSubHubbub

Code

public function getHttpResponse() {
  if ($this->httpResponse === null) {
    $this->httpResponse = new HttpResponse();
  }
  return $this->httpResponse;
}