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.

Annotation

 Methods

Receive and process the contents of an annotation

__construct(array $data) 
Inherited

inherited_from \Zend\Form\Annotation\AbstractArrayAnnotation::__construct()

Parameters

$data

array

Exceptions

\Zend\Form\Exception\DomainException if a 'value' key is missing, or its value is not an array

Retrieve the validator specification

getValidator() : null | array

Returns

nullarray

 Properties

 

$value

$value : array
Inherited

inherited_from \Zend\Form\Annotation\AbstractArrayAnnotation::$$value