Index

iResponse

MMO\core\interfaces · 1 symbol · generated 5 Oct 2026

interface

iResponse

iResponse.php:9

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

Index

lock() abstract
logEvent($event) abstract

Methods2

Inherited members (25)
MethodsDeclared byDescription
AddListener($handler, $priority)iEvent
dispatch()iEvent
getBody()MessageInterfaceGets the body of the message.
getHeader($name)MessageInterfaceRetrieves a message header value by the given case-insensitive name.
getHeaderLine($name)MessageInterfaceRetrieves a comma-separated string of the values for a single header.
getHeaders()MessageInterfaceRetrieves all message header values.
GetListeners()iEvent
getOrigin()iEvent
getProtocolVersion()MessageInterfaceRetrieves the HTTP protocol version as a string.
getReasonPhrase()ResponseInterfaceGets the response reason phrase associated with the status code.
getStatusCode()ResponseInterfaceGets the response status code.
hasHeader($name)MessageInterfaceChecks if a header exists by the given case-insensitive name.
HasListener($handler)iEvent
isPropagationStopped()StoppableEventInterfaceIs propagation stopped?
RemoveListener($handler)iEvent
render($opts)iRenderable
Send($args)iEvent
stopPropagation()iStoppableEvent
withAddedHeader($name, $value)MessageInterfaceReturn an instance with the specified header appended with the given value.
withBody($body)MessageInterfaceReturn an instance with the specified message body.
withHeader($name, $value)MessageInterfaceReturn an instance with the provided value replacing the specified header.
withoutHeader($name)MessageInterfaceReturn an instance without the specified header.
withProtocolVersion($version)MessageInterfaceReturn an instance with the specified HTTP protocol version.
withStatus($code, $reasonPhrase)ResponseInterfaceReturn an instance with the specified status code and, optionally, reason phrase.
__toString()iRenderable