namespace ; final class implements MiddlewareInterface { public function handle(Envelope $envelope, StackInterface $stack): Envelope { // ... return $stack->next()->handle($envelope, $stack); } }