ElementsType implements PropertyValidationAttributeInterface uses ValidationErrorTrait
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Interfaces
Methods
- __construct() : mixed
- validateProperty() : ValidationResult
Methods
__construct()
public
__construct([Type|null $typeEnum = null ][, string|null $className = null ][, string|LocalizableMessageInterface|null $errorMessage = null ]) : mixed
Parameters
- $typeEnum : Type|null = null
- $className : string|null = null
- $errorMessage : string|LocalizableMessageInterface|null = null
Tags
validateProperty()
public
validateProperty(mixed $propertyValue) : ValidationResult
Parameters
- $propertyValue : mixed