final class Validate (View source)

Controls how a property or method argument will be validated by Flow.

Properties

string|null $type

The validator type, either a FQCN or a Flow validator class name.

array $options

Options for the validator, validator-specific.

string $argumentName

The name of the argument this annotation is attached to, if used on a method. (Can be given as anonymous argument.)

array $validationGroups

The validation groups for which this validator should be executed.

Methods

__construct(string|null $argumentName = null, string $type = null, array $options = [], array|null $validationGroups = null)

No description

Details

__construct(string|null $argumentName = null, string $type = null, array $options = [], array|null $validationGroups = null)

No description

Parameters

string|null $argumentName
string $type
array $options
array|null $validationGroups