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 Default

 Methods

Receive and process the contents of an annotation

__construct(array $data) 

Parameters

$data

array

Get value of required flag

getRequired() : boolean

Returns

boolean

 Properties

 

$required

$required : boolean

Default

true