W3cubDocs

/Symfony 4.1

ValidationBuilder

class ValidationBuilder

This class builds validation conditions.

Properties

protected $node
$rules

Methods

__construct(NodeDefinition $node)
ExprBuilder|$this 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)

Parameters

NodeDefinition $node

ExprBuilder|$this 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|$this

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/Definition/Builder/ValidationBuilder.html