Documentation

NormalizationBuilder
in package

This class builds normalization conditions.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

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

Methods

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

Return values
$this

Search results