StackMiddleware
in package
implements
MiddlewareInterface, StackInterface
Tags
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- handle() : Envelope
- next() : MiddlewareInterface
- Returns the next middleware to process a message.
Properties
$offset
private
int
$offset
= 0
$stack
private
mixed
$stack
Methods
__construct()
public
__construct([iterable<mixed, MiddlewareInterface>|MiddlewareInterface|null $middlewareIterator = null ]) : mixed
Parameters
- $middlewareIterator : iterable<mixed, MiddlewareInterface>|MiddlewareInterface|null = null
handle()
public
handle(Envelope $envelope, StackInterface $stack) : Envelope
Parameters
- $envelope : Envelope
- $stack : StackInterface
Return values
Envelopenext()
Returns the next middleware to process a message.
public
next() : MiddlewareInterface