Documentation

ValidationBuilder
in package

This class builds validation conditions.

Tags
template
author

Christophe Coevoet stof@notk.org

Table of Contents

Properties

$rules  : array<string|int, ExprBuilder<string|int, T>|Closure>
$node  : NodeDefinition

Methods

__construct()  : mixed
rule()  : T>)
Registers a closure to run as normalization or an expression builder to build it if null is provided.

Properties

Methods

rule()

Registers a closure to run as normalization or an expression builder to build it if null is provided.

public rule([Closure|null $closure = null ]) : T>)
Parameters
$closure : Closure|null = null
Return values
T>)
On this page

Search results