PartialsDefinition
class PartialsDefinition
Properties
| protected PartialDefinition> | $includes | ||
| protected PartialDefinition> | $excludes | ||
| protected PartialDefinition> | $only | ||
| protected PartialDefinition> | $except |
Methods
Determine whether no partial definitions are registered.
Determine whether a resolved partial set contains any definitions.
Add class-owned permanent definitions.
Add definitions resolved by an enclosing data object or collection.
Resolve active paths and optionally consume temporary definitions.
Resolve one definition group.
Get a mutable definition group.
Details
at line 27
bool
isEmpty()
Determine whether no partial definitions are registered.
at line 40
static bool
hasResolved(array $definitions)
Determine whether a resolved partial set contains any definitions.
at line 51
void
add(string $type, string $path, bool $permanent = false, Closure|null $condition = null)
Add a partial definition.
at line 66
void
addDefaults(string $type, array $definitions)
Add class-owned permanent definitions.
at line 99
void
addResolved(array $definitions)
Add definitions resolved by an enclosing data object or collection.
at line 125
array
resolve(object $data, bool $consumeTemporary = false)
Resolve active paths and optionally consume temporary definitions.
at line 140
protected array
resolveType(string $type, object $data, bool $consumeTemporary)
Resolve one definition group.
at line 171
protected array
definitions(string $type)
Get a mutable definition group.