108. Class

108.1. 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., “@AnnotationRequired(false)”). Any boolean value understood by ZendFilterBoolean is allowed as the content.

108.1.1. Methods

108.1.1.1. __construct

__construct()

Receive and process the contents of an annotation

Parameters:array

108.1.1.2. getRequired

getRequired()

Get value of required flag

Return type:bool

Project Versions

Table Of Contents

Previous topic

107. Class

Next topic

109. Class

This Page