| Methods |
public
|
__construct(string $name, list<Property> $properties = [], list<Component> $components = [])
|
#
|
public
|
property(string $name): ?Property
First property with the name, e.g. property('X-APPLE-STRUCTURED-LOCATION').
First property with the name, e.g. property('X-APPLE-STRUCTURED-LOCATION').
|
#
|
public
|
properties(string $name): list<Property>
All properties with the name.
All properties with the name.
|
#
|
public
|
has(string $name): bool
|
#
|
public
|
component(string $name): ?self
First child component with the name.
First child component with the name.
|
#
|
public
|
components(string $name): list<Component>
Child components with the name.
Child components with the name.
|
#
|
public
|
withProperty(
Property|string $property,
string $value = '',
array<string, string|list<string>>|Parameters $parameters = [],
): self
|
#
|
public
|
withReplacedProperty(
Property|string $property,
string $value = '',
array<string, string|list<string>>|Parameters $parameters = [],
): self
Replace all properties with the name by the given one.
Replace all properties with the name by the given one.
|
#
|
public
|
withoutProperties(string $name): self
|
#
|
public
|
withComponent(self $component): self
|
#
|
public
|
withComponents(list<Component> $components): self
|
#
|