Item
class Item implements ItemInterface
Methods
Item constructor.
Returns the key of this item.
Returns whether this item can be resolved without typehint and instead uses its name for being resolved.
No description
Whether or not this item is a factory.
No description
Set the arguments to instantiate the factory with.
Returns the contents of the container.
String representation of an item.
Details
at line 68
__construct(string|null $name, mixed $content, ContainerInterface $container, bool $factory = false, bool $resolvedByName = false)
Item constructor.
at line 88
string|null
getName()
Returns the key of this item.
at line 100
Item
setName(string $name)
Set the name of this item.
at line 112
Closure
getRaw()
Returns the raw closure, non-executed.
at line 123
bool
isResolvedByName()
Returns whether this item can be resolved without typehint and instead uses its name for being resolved.
at line 133
Item
setResolvedByName(bool $resolvableByName)
at line 145
bool
isFactory()
Whether or not this item is a factory.
at line 155
Item
setFactory(bool $factory)
at line 169
Item
setFactoryArgs(mixed ...$args)
Set the arguments to instantiate the factory with.
at line 184
mixed
getContent(string $dottedPath = '')
Returns the contents of the container.
at line 207
string
__toString()
String representation of an item.