AllowEmpty annotation

Presence of this annotation is a hint that the associated \Zend\InputFilter\Input should enable the allowEmpty flag.

Annotation
deprecated 2.4.8 Use `@Validator({"name":"NotEmpty"})` instead.
package Default

 Methods

Receive and process the contents of an annotation

__construct(array $data) 

Parameters

$data

array

Get value of required flag

getAllowEmpty() : boolean

Returns

boolean

 Properties

 

$allowEmpty

$allowEmpty : boolean

Default

true