ContextStorageInterface
in
Table of Contents
Methods
- attach() : ContextStorageScopeInterface
- Attaches the context as active context.
- current() : ContextInterface
- Returns the current context.
- scope() : ContextStorageScopeInterface|null
- Returns the current scope.
Methods
attach()
Attaches the context as active context.
public
attach(ContextInterface $context) : ContextStorageScopeInterface
Parameters
- $context : ContextInterface
-
context to attach
Return values
ContextStorageScopeInterface —scope to detach the context and restore the previous context
current()
Returns the current context.
public
current() : ContextInterface
Return values
ContextInterface —current context
scope()
Returns the current scope.
public
scope() : ContextStorageScopeInterface|null
Return values
ContextStorageScopeInterface|null —current scope, or null if no scope was attached in the current execution unit