Methods |
public
|
getProvider(): TProvider
Get the context's provider
Get the context's provider
|
#
|
public
|
withContainer(ContainerInterface $container): static
Get an instance with the given container
Get an instance with the given container
Implemented by
|
#
|
public
|
getEntityType(): class-string<TEntity>|null
Get the entity type applied to the context
Get the entity type applied to the context
Implemented by
|
#
|
public
|
withEntityType(class-string<TEntity> $entityType): static
Get an instance with the given entity type
Get an instance with the given entity type
Implemented by
|
#
|
public
|
getConformity(): ListConformity::*
Get the array key conformity applied to the context
Get the array key conformity applied to the context
Implemented by
|
#
|
public
|
withConformity(ListConformity::* $conformity): static
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.
|
Implemented by
|
#
|
public
|
getEntities(): TEntity[]
Get entities for which the context has been propagated
Get entities for which the context has been propagated
Implemented by
|
#
|
public
|
getLastEntity(): TEntity|null
Get the entity for which the context was most recently propagated
Get the entity for which the context was most recently propagated
Implemented by
|
#
|
public
|
pushEntity(TEntity $entity): static
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 .
Implemented by
|
#
|
public
|
getParent(): (TEntity&Treeable)|null
Get the parent entity applied to the context
Get the parent entity applied to the context
Implemented by
|
#
|
public
|
withParent((TEntity&Treeable)|null $parent): static
Get an instance with the given parent entity
Get an instance with the given parent entity
Implemented by
|
#
|
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
Implemented by
|
#
|
public
|
getValue(string $name): (int|string|float|bool|null)[]|int|string|float|bool|null
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
Implemented by
|
#
|
public
|
withValue(string $name, (int|string|float|bool|null)[]|int|string|float|bool|null $value): static
Get an instance with the given value applied
Get an instance with the given value applied
Implemented by
|
#
|