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.

Annotation
package Zend_Form
subpackage Annotation

 Methods

Receive and process the contents of an annotation

__construct(array $data) 

Parameters

$data

array

Get value of required flag

getRequired() : bool

Returns

bool

 Properties

 

$required

$required : bool