ContextState
class ContextState implements ReplicableContext
| internal |
Hold one execution unit's inherited context and locally attached scopes.
Properties
| protected Scope|null | $scope |
Methods
__construct(ContextInterface $baseContext)
Create a context state.
ContextInterface
current()
Return the active context.
replicate()
Create an independent child state from the active context.
Details
at line 24
__construct(ContextInterface $baseContext)
Create a context state.
at line 31
Scope|null
scope()
Return the active scope.
at line 39
ContextInterface
current()
Return the active context.
at line 47
void
attach(Scope $scope)
Push a scope onto this execution unit's stack.
at line 56
int
detach(Scope $scope)
Detach a scope from this execution unit's stack.
at line 90
ReplicableContext
replicate()
Create an independent child state from the active context.