ValidationBuilder
in package
This class builds validation conditions.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- rule() : ExprBuilder|$this
- Registers a closure to run as normalization or an expression builder to build it if null is provided.
Properties
$rules
public
mixed
$rules
= []
$node
protected
mixed
$node
Methods
__construct()
public
__construct(NodeDefinition $node) : mixed
Parameters
- $node : NodeDefinition
rule()
Registers a closure to run as normalization or an expression builder to build it if null is provided.
public
rule([Closure $closure = null ]) : ExprBuilder|$this
Parameters
- $closure : Closure = null