ErrorMessage annotation

Allows providing an error message to seed the Input specification for a given element. The content should be a string.

Annotation
package Default
inherited_from \Zend\Form\Annotation\AbstractStringAnnotation

 Methods

Receive and process the contents of an annotation

__construct(array $data) 
Inherited

Parameters

$data

array

Exceptions

\Zend\Form\Exception\DomainException if a 'value' key is missing, or its value is not a string

Retrieve the message

getMessage() : null | string

Returns

nullstring

 Properties

 

$value

$value : string

Default