MappingRule

class MappingRule

Methods

__construct(FormInterface $origin, $propertyPath, $targetPath)
FormInterface getOrigin()
null|FormInterface 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.

FormInterface getTarget()

Details

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

Parameters

FormInterface $origin
$propertyPath
$targetPath

FormInterface getOrigin()

Return Value

FormInterface

null|FormInterface 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

null|FormInterface The mapped form or null

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

FormInterface getTarget()

Return Value

FormInterface

Exceptions

ErrorMappingException
doc_Symfony
2016-10-28 06:23:18
Comments
Leave a Comment

Please login to continue.