Validation
in package
FinalYes
Entry point for the Validator component.
Tags
Table of Contents
Methods
- createCallable() : callable
- Creates a callable chain of constraints.
- createIsValidCallable() : callable
- Creates a callable that returns true/false instead of throwing validation exceptions.
- createValidator() : ValidatorInterface
- Creates a new validator.
- createValidatorBuilder() : ValidatorBuilder
- Creates a configurable builder for validator objects.
- __construct() : mixed
- This class cannot be instantiated.
Methods
createCallable()
Creates a callable chain of constraints.
public
static createCallable([Constraint|ValidatorInterface $constraintOrValidator = null ], Constraint ...$constraints) : callable
Parameters
- $constraintOrValidator : Constraint|ValidatorInterface = null
- $constraints : Constraint
Return values
callablecreateIsValidCallable()
Creates a callable that returns true/false instead of throwing validation exceptions.
public
static createIsValidCallable([Constraint|ValidatorInterface $constraintOrValidator = null ], Constraint ...$constraints) : callable
Parameters
- $constraintOrValidator : Constraint|ValidatorInterface = null
- $constraints : Constraint
Return values
callable —bool
createValidator()
Creates a new validator.
public
static createValidator() : ValidatorInterface
Return values
ValidatorInterfacecreateValidatorBuilder()
Creates a configurable builder for validator objects.
public
static createValidatorBuilder() : ValidatorBuilder
Return values
ValidatorBuilder__construct()
This class cannot be instantiated.
private
__construct() : mixed