ActorRegistry
in package
FinalYes
Tags
Table of Contents
Methods
- freeze() : array<int, ActorRegistrationEntry>
- has() : bool
- register() : ActorRegistration
- update() : void
- Called by ActorRegistration on every mutation. The registration mutates itself in place; the bundle in $entries holds the same instance, so the registry sees fresh values at freeze() time without any extra bookkeeping here. The parameter stays on the signature so future bookkeeping (e.g.
Methods
freeze()
public
freeze() : array<int, ActorRegistrationEntry>
Return values
array<int, ActorRegistrationEntry>has()
public
has(string $name) : bool
Parameters
- $name : string
Return values
boolregister()
public
register(string $name, Props $props, ActorMode $initialMode) : ActorRegistration
Parameters
- $name : string
- $props : Props
- $initialMode : ActorMode
Return values
ActorRegistrationupdate()
Called by ActorRegistration on every mutation. The registration mutates itself in place; the bundle in $entries holds the same instance, so the registry sees fresh values at freeze() time without any extra bookkeeping here. The parameter stays on the signature so future bookkeeping (e.g.
public
update(ActorRegistration $registration) : void
change-tracking, freeze-after-first-compile guards) can land as a non- breaking change.
Parameters
- $registration : ActorRegistration