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.
Synopsis
class Required
{
- // members
- protected bool $required;
- // methods
- public void __construct()
- public bool getRequired()
Members
protected
- $required — Zend\Form\Annotation\bool
Methods
public
- __construct() — Receive and process the contents of an annotation
- getRequired() — Get value of required flag