Fully Qualified Name: | Laminas\Form\Annotation\ErrorMessage |
Extends: | AbstractStringAnnotation |
ErrorMessage annotation
Allows providing an error message to seed the Input specification for a given element. The content should be a string.
Name | Description | Defined By |
---|---|---|
__construct() | Receive and process the contents of an annotation | AbstractStringAnnotation |
getMessage() | Retrieve the message | ErrorMessage |
Receive and process the contents of an annotation
Parameter Name | Type | Description |
---|---|---|
$data | array |
Returns:
Retrieve the message
Returns: null|string