ProcessStack
in package
implements
Stringable
uses
StringableTrait
WebSocket\Middleware\ProcessStack class.
Worker stack for middleware implementations.
Table of Contents
Interfaces
Properties
- $connection : Connection
- $messageHandler : MessageHandler
- $processors : array<string|int, mixed>
Methods
- __construct() : mixed
- Create ProcessStack.
- __toString() : string
- handleIncoming() : Message
- Process middleware for incoming message.
- handleOutgoing() : Message
- Process middleware for outgoing message.
- stringable() : string
Properties
$connection
private
Connection
$connection
$messageHandler
private
MessageHandler
$messageHandler
$processors
private
array<string|int, mixed>
$processors
Methods
__construct()
Create ProcessStack.
public
__construct(Connection $connection, MessageHandler $messageHandler, array<string|int, mixed> $processors) : mixed
Parameters
- $connection : Connection
- $messageHandler : MessageHandler
- $processors : array<string|int, mixed>
__toString()
public
__toString() : string
Return values
stringhandleIncoming()
Process middleware for incoming message.
public
handleIncoming() : Message
Return values
MessagehandleOutgoing()
Process middleware for outgoing message.
public
handleOutgoing(Message $message) : Message
Parameters
- $message : Message
Return values
Messagestringable()
protected
stringable(string $format, mixed ...$values) : string
Parameters
- $format : string
- $values : mixed