Class ErrorMessage

Summary

Fully Qualified Name: Laminas\Form\Annotation\ErrorMessage
Extends: AbstractStringAnnotation

Description

ErrorMessage annotation

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

Methods

Name Description Defined By
__construct() Receive and process the contents of an annotation AbstractStringAnnotation
getMessage() Retrieve the message ErrorMessage

Method Details

__construct()

Receive and process the contents of an annotation

Parameter Name Type Description
$data array

Returns:

getMessage()

Retrieve the message

Returns: null|string

Top