NormalizationBuilder
in package
This class builds normalization conditions.
Tags
Table of Contents
Properties
- $before : mixed
- $remappings : mixed
- $node : mixed
Methods
- __construct() : mixed
- before() : ExprBuilder|$this
- Registers a closure to run before the normalization or an expression builder to build it if null is provided.
- remap() : $this
- Registers a key to remap to its plural form.
Properties
$before
public
mixed
$before
= []
$remappings
public
mixed
$remappings
= []
$node
protected
mixed
$node
Methods
__construct()
public
__construct(NodeDefinition $node) : mixed
Parameters
- $node : NodeDefinition
before()
Registers a closure to run before the normalization or an expression builder to build it if null is provided.
public
before([Closure $closure = null ]) : ExprBuilder|$this
Parameters
- $closure : Closure = null
Return values
ExprBuilder|$thisremap()
Registers a key to remap to its plural form.
public
remap(string $key[, string|null $plural = null ]) : $this
Parameters
- $key : string
-
The key to remap
- $plural : string|null = null
-
The plural of the key in case of irregular plural