Documentation

MappingRule
in package

Tags
author

Bernhard Schussek bschussek@gmail.com

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

Methods

__construct()

public __construct(FormInterface $origin, string $propertyPath, string $targetPath) : mixed
Parameters
$origin : FormInterface
$propertyPath : string
$targetPath : string

isPrefix()

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

public isPrefix(string $propertyPath) : bool
Parameters
$propertyPath : string
Return values
bool

match()

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

        
On this page

Search results