ValidationBuilder

class ValidationBuilder

This class builds validation conditions.

Properties

$rules

Methods

__construct(NodeDefinition $node)

Constructor.

ExprBuilder|ValidationBuilder rule(Closure $closure = null)

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

Details

__construct(NodeDefinition $node)

Constructor.

Parameters

NodeDefinition $node The related node

ExprBuilder|ValidationBuilder rule(Closure $closure = null)

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

Parameters

Closure $closure

Return Value

ExprBuilder|ValidationBuilder
doc_Symfony
2016-10-28 06:36:31
Comments
Leave a Comment

Please login to continue.