iResponse
MMO\core\interfaces · 1 symbol · generated 30 Sep 2026
Any object that can log events
interface MMO\core\interfaces\iResponse
extends Psr\Http\Message\ResponseInterface,
MMO\core\interfaces\iStoppableEvent,
MMO\core\interfaces\iEvent,
MMO\core\interfaces\iRenderable- Namespace
MMO\core\interfaces- Implements
ResponseInterface, iStoppableEvent, iEvent, iRenderable
Methods2
abstract function lock(): voidabstract function logEvent(object $event): boolInherited members (25)
| Methods | Declared by | Description |
|---|
| AddListener($handler, $priority) | iEvent | |
| dispatch() | iEvent | |
| getBody() | MessageInterface | Gets the body of the message. |
| getHeader($name) | MessageInterface | Retrieves a message header value by the given case-insensitive name. |
| getHeaderLine($name) | MessageInterface | Retrieves a comma-separated string of the values for a single header. |
| getHeaders() | MessageInterface | Retrieves all message header values. |
| GetListeners() | iEvent | |
| getOrigin() | iEvent | |
| getProtocolVersion() | MessageInterface | Retrieves the HTTP protocol version as a string. |
| getReasonPhrase() | ResponseInterface | Gets the response reason phrase associated with the status code. |
| getStatusCode() | ResponseInterface | Gets the response status code. |
| hasHeader($name) | MessageInterface | Checks if a header exists by the given case-insensitive name. |
| HasListener($handler) | iEvent | |
| isPropagationStopped() | StoppableEventInterface | Is propagation stopped? |
| RemoveListener($handler) | iEvent | |
| render($opts) | iRenderable | |
| Send($args) | iEvent | |
| stopPropagation() | iStoppableEvent | |
| withAddedHeader($name, $value) | MessageInterface | Return an instance with the specified header appended with the given value. |
| withBody($body) | MessageInterface | Return an instance with the specified message body. |
| withHeader($name, $value) | MessageInterface | Return an instance with the provided value replacing the specified header. |
| withoutHeader($name) | MessageInterface | Return an instance without the specified header. |
| withProtocolVersion($version) | MessageInterface | Return an instance with the specified HTTP protocol version. |
| withStatus($code, $reasonPhrase) | ResponseInterface | Return an instance with the specified status code and, optionally, reason phrase. |
| __toString() | iRenderable | |