ValidationBuilder
in package
This class builds validation conditions.
Tags
Table of Contents
- $rules : mixed
- $node : mixed
- __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
Return values
mixed —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 ]) : ExprBuilder|$this
Parameters
- $closure : Closure|null = null