class MappingRule

Methods

__construct(FormInterface $origin, string $propertyPath, string $targetPath)

No description

getOrigin()

No description

match(string $propertyPath)

Matches a property path against the rule path.

bool
isPrefix(string $propertyPath)

Matches a property path against a prefix of the rule path.

getTarget()

No description

Details

at line 26
__construct(FormInterface $origin, string $propertyPath, string $targetPath)

Parameters

FormInterface $origin
string $propertyPath
string $targetPath

at line 36
FormInterface getOrigin()

Return Value

FormInterface

at line 51
FormInterface|null match(string $propertyPath)

Matches a property path against the rule path.

If the rule matches, the form mapped by the rule is returned. Otherwise this method returns false.

Parameters

string $propertyPath The property path to match against the rule

Return Value

FormInterface|null The mapped form or null

at line 65
bool isPrefix(string $propertyPath)

Matches a property path against a prefix of the rule path.

Parameters

string $propertyPath The property path to match against the rule

Return Value

bool Whether the property path is a prefix of the rule or not

at line 79
FormInterface getTarget()

Return Value

FormInterface

Exceptions

ErrorMappingException