Documentation

NormalizationBuilder
in package

This class builds normalization conditions.

Tags
template
author

Johannes M. Schmitt schmittjoh@gmail.com

Table of Contents

Properties

$before  : array<string|int, ExprBuilder<string|int, T>|Closure>
$declaredTypes  : array<string|int, mixed>
$remappings  : array<string|int, mixed>
$node  : NodeDefinition

Methods

__construct()  : mixed
before()  : T>)
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 ]) : T>)
Parameters
$closure : Closure|null = null
Return values
T>)

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
On this page

Search results