Class Required

Summary

Fully Qualified Name: Zend\Form\Annotation\Required

Description

Required annotation

Use this annotation to specify the value of the "required" flag for a given input. Since the flag defaults to "true", this will typically be used to "unset" the flag (e.g., "@Annotation\Required(false)"). Any boolean value understood by \Zend\Filter\Boolean is allowed as the content.

Methods

Name Description Defined By
__construct() Receive and process the contents of an annotation Required
getRequired() Get value of required flag Required

Method Details

__construct()

Receive and process the contents of an annotation

Parameter Name Type Description
$data array

Returns:

getRequired()

Get value of required flag

Returns: bool

Top