MixedEntry
class MixedEntry implements EntryInterface (View source)
A standard container entry that may be any value or a closure used to determine that value.
Methods
__construct(mixed $value)
MixedType constructor.
static EntryInterface
createFromCacheParameters(array $parameters)
Initializes the entry from the given container cache parameters.
array
getCacheParameters()
Returns the container cache parameters for the entry.
bool
isFactory()
Tells if we should not cache the value because the entry is a factory.
mixed
getValue(ContainerInterface $container)
Returns the value for the container entry.
Details
at line 23
__construct(mixed $value)
MixedType constructor.
at line 29
static EntryInterface
createFromCacheParameters(array $parameters)
Initializes the entry from the given container cache parameters.
at line 35
array
getCacheParameters()
Returns the container cache parameters for the entry.
at line 41
bool
isFactory()
Tells if we should not cache the value because the entry is a factory.
at line 47
mixed
getValue(ContainerInterface $container)
Returns the value for the container entry.