Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Required Class Reference

Required annotation. More...

Public Member Functions

 __construct (array $data)
 Receive and process the contents of an annotation.
 
 getRequired ()
 Get value of required flag.
 

Protected Attributes

 $required = true
 

Detailed Description

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 is allowed as the content.

Constructor & Destructor Documentation

__construct ( array  $data)

Receive and process the contents of an annotation.

Parameters
array$data

Member Function Documentation

getRequired ( )

Get value of required flag.

Returns
bool

Member Data Documentation

$required = true
protected