NormalizationBuilder
in package
This class builds normalization conditions.
Tags
Table of Contents
- $before : mixed
- $remappings : mixed
- $node : mixed
- __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
Return values
mixed —before()
Registers a closure to run before the normalization or an expression builder to build it if null is provided.
public
before([Closure|null $closure = null ]) : ExprBuilder|$this
Parameters
- $closure : Closure|null = null
Return values
ExprBuilder|$this —remap()
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