Add magic getter for response object

This commit is contained in:
Sebastian Meyer 2023-12-17 10:54:49 +01:00
parent 7e0c7dd9cc
commit 6d44341f66
1 changed files with 11 additions and 0 deletions

View File

@ -163,6 +163,17 @@ class QueueRequestHandler implements RequestHandlerInterface
return $this->request; return $this->request;
} }
/**
* Magic getter method for $this->response.
* @see Getter
*
* @return ResponseInterface The PSR-7 response
*/
protected function magicGetResponse(): ResponseInterface
{
return $this->response;
}
/** /**
* Create a queue-based PSR-15 HTTP Server Request Handler. * Create a queue-based PSR-15 HTTP Server Request Handler.
* *