Fully Qualified Name: | Laminas\Form\Annotation\Validator |
Extends: | AbstractArrayAnnotation |
Validator annotation
Expects an associative array defining the validator.
Typically, this includes the "name" with an associated string value indicating the validator name or class, and optionally an "options" key with an object/associative array value of options to pass to the validator constructor.
This annotation may be specified multiple times; validators will be added to the validator chain in the order specified.
Name | Description | Defined By |
---|---|---|
__construct() | Receive and process the contents of an annotation | AbstractArrayAnnotation |
getValidator() | Retrieve the validator specification | Validator |
Receive and process the contents of an annotation
Parameter Name | Type | Description |
---|---|---|
$data | array |
Returns:
Retrieve the validator specification
Returns: null|array