Methods |
public
|
__construct(ContainerInterface $container, TProvider $provider)
|
#
|
public
|
getProvider(): ProviderInterface
Get the object's provider
Get the object's provider
Implements
|
#
|
public
|
getContainer(): ContainerInterface
Get the object's service container
Get the object's service container
Implements
|
#
|
public
|
withContainer(ContainerInterface $container)
Get an instance with the given container
Get an instance with the given container
Implements
|
#
|
public
|
getEntityType(): ?string
Get the entity type applied to the context
Get the entity type applied to the context
Implements
|
#
|
public
|
withEntityType(string $entityType)
Get an instance with the given entity type
Get an instance with the given entity type
Implements
|
#
|
public
|
getConformity(): int
Get the array key conformity applied to the context
Get the array key conformity applied to the context
Implements
|
#
|
public
|
withConformity(int $conformity)
Get an instance with the given array key conformity
Get an instance with the given array key conformity
Parameters
$conformity |
Use {@see ListConformity::COMPLETE}
wherever possible to improve performance.
|
Implements
|
#
|
public
|
getEntities(): array
Get entities for which the context has been propagated
Get entities for which the context has been propagated
Implements
|
#
|
public
|
getLastEntity(): ?Providable
Get the entity for which the context was most recently propagated
Get the entity for which the context was most recently propagated
Implements
|
#
|
public
|
pushEntity($entity)
Add the entity for which the context is being propagated
Add the entity for which the context is being propagated
If $entity implements {@see HasId} and the return value of
{@see HasId::getId()} is not null , it is applied to the context as a
value with name <entity_basename>_id .
Overriden by
Implements
|
#
|
public
|
getParent(): ?Providable
Get the parent entity applied to the context
Get the parent entity applied to the context
Implements
|
#
|
public
|
withParent(?Treeable $parent)
Get an instance with the given parent entity
Get an instance with the given parent entity
Implements
|
#
|
public
|
hasValue(string $name): bool
Check if a value has been applied to the context
Check if a value has been applied to the context
Implements
|
#
|
public
|
getValue(string $name)
Get a value applied to the context, or null if it has not been applied
Get a value applied to the context, or null if it has not been applied
Implements
|
#
|
public
|
withValue(string $name, $value)
Get an instance with the given value applied
Get an instance with the given value applied
Implements
|
#
|