ContextStorageScopeInterface
extends
ScopeInterface, ArrayAccess
in
Tags
Table of Contents
Constants
- DETACHED = 1 << (\PHP_INT_SIZE << 3) - 1
- The associated context was already detached.
- INACTIVE = 1 << (\PHP_INT_SIZE << 3) - 2
- The associated context is not in the active execution context.
- MISMATCH = 1 << (\PHP_INT_SIZE << 3) - 3
- The associated context is not the active context.
Methods
- context() : ContextInterface
- Returns the context associated with this scope.
- detach() : int
- Detaches the context associated with this scope and restores the previously associated context.
- offsetSet() : void
Constants
DETACHED
The associated context was already detached.
public
mixed
DETACHED
= 1 << (\PHP_INT_SIZE << 3) - 1
INACTIVE
The associated context is not in the active execution context.
public
mixed
INACTIVE
= 1 << (\PHP_INT_SIZE << 3) - 2
MISMATCH
The associated context is not the active context.
public
mixed
MISMATCH
= 1 << (\PHP_INT_SIZE << 3) - 3
Methods
context()
Returns the context associated with this scope.
public
context() : ContextInterface
Return values
ContextInterface —associated context
detach()
Detaches the context associated with this scope and restores the previously associated context.
public
detach() : int
Tags
Return values
int —zero indicating an expected call, or a non-zero value indicating that the call was unexpected
offsetSet()
public
offsetSet(string $offset, mixed $value) : void
Parameters
- $offset : string
- $value : mixed