MappingRule
in package
Tags
Table of Contents
Properties
- $origin : mixed
- $propertyPath : string
- $targetPath : string
Methods
- __construct() : mixed
- getOrigin() : FormInterface
- getTarget() : FormInterface
- isPrefix() : bool
- Matches a property path against a prefix of the rule path.
- match() : FormInterface|null
- Matches a property path against the rule path.
Properties
$origin
private
mixed
$origin
$propertyPath
private
string
$propertyPath
$targetPath
private
string
$targetPath
Methods
__construct()
public
__construct(FormInterface $origin, string $propertyPath, string $targetPath) : mixed
Parameters
- $origin : FormInterface
- $propertyPath : string
- $targetPath : string
getOrigin()
public
getOrigin() : FormInterface
Return values
FormInterfacegetTarget()
public
getTarget() : FormInterface
Tags
Return values
FormInterfaceisPrefix()
Matches a property path against a prefix of the rule path.
public
isPrefix(string $propertyPath) : bool
Parameters
- $propertyPath : string
Return values
boolmatch()
Matches a property path against the rule path.
public
match(string $propertyPath) : FormInterface|null
If the rule matches, the form mapped by the rule is returned. Otherwise this method returns false.
Parameters
- $propertyPath : string