ValidationBuilder
in package
This class builds validation conditions.
Tags
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
$rules
public
array<string|int, ExprBuilder<string|int, T>|Closure>
$rules
= []
$node
protected
NodeDefinition
$node
Methods
__construct()
public
__construct(T $node) : mixed
Parameters
- $node : T
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