Fully Qualified Name: | Zend\Form\Annotation\Required |
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.
Name | Description | Defined By |
---|---|---|
__construct() | Receive and process the contents of an annotation | Required |
getRequired() | Get value of required flag | Required |
Receive and process the contents of an annotation
Parameter Name | Type | Description |
---|---|---|
$data | array |
Returns:
Get value of required flag
Returns: bool