MappingRule
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)
FormInterface getOrigin()
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.
bool isPrefix(string $propertyPath)
Matches a property path against a prefix of the rule path.
FormInterface getTarget()
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.html