Zend Framework  3.0
Public Member Functions | List of all members
Validator Class Reference

Validator annotation. More...

Public Member Functions

 getValidator ()
 Retrieve the validator specification.
 
- Public Member Functions inherited from AbstractArrayAnnotation
 __construct (array $data)
 Receive and process the contents of an annotation.
 

Additional Inherited Members

- Protected Attributes inherited from AbstractArrayAnnotation
 $value
 

Detailed 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.

Member Function Documentation

getValidator ( )

Retrieve the validator specification.

Returns
null|array