LogActor
in package
implements
StatefulActorHandler
Read onlyYes
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- handle() : BehaviorWithState<T, S>
- Handle an incoming message with the current state.
- initialState() : S
- 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 $ctx, object $message, mixed $state) : BehaviorWithState<T, S>
Parameters
- $ctx : ActorContext
- $message : object
- $state : mixed
Tags
Return values
BehaviorWithState<T, S>initialState()
Provide the initial state for this actor.
public
initialState() : S