Class Validator

Summary

Fully Qualified Name: Zend\Form\Annotation\Validator
Extends: AbstractArrayAnnotation

Description

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.

Methods

Name Description Defined By
__construct() Receive and process the contents of an annotation AbstractArrayAnnotation
getValidator() Retrieve the validator specification Validator

Method Details

__construct()

Receive and process the contents of an annotation

Parameter Name Type Description
$data array

Returns:

getValidator()

Retrieve the validator specification

Returns: null|array

Top