LogActor
in package
implements
StatefulActorHandler
Read onlyYes
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- handle() : BehaviorWithState<Record, array<int, Handler>>
- Handle an incoming message with the current state.
- initialState() : array<int, Handler>
- Provide the initial state for this actor.
Methods
__construct()
public
__construct(array<int, Handler> $handlers) : mixed
Parameters
- $handlers : array<int, Handler>
handle()
Handle an incoming message with the current state.
public
handle(ActorContext<string|int, Record> $ctx, object $message, array<int, Handler> $state) : BehaviorWithState<Record, array<int, Handler>>
Parameters
- $ctx : ActorContext<string|int, Record>
- $message : object
-
Wire type; anything other than a Record is ignored defensively.
- $state : array<int, Handler>
Attributes
- #[Override]
Return values
BehaviorWithState<Record, array<int, Handler>>initialState()
Provide the initial state for this actor.
public
initialState() : array<int, Handler>
Attributes
- #[Override]