PhoneOrEmail implements PropertyValidationAttributeInterface uses ValidationErrorTrait
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Interfaces
Methods
- __construct() : mixed
- validateProperty() : ValidationResult
Methods
__construct()
public
__construct([bool $strict = false ][, bool $domainCheck = false ][, string|LocalizableMessageInterface|null $errorMessage = null ]) : mixed
Parameters
- $strict : bool = false
- $domainCheck : bool = false
- $errorMessage : string|LocalizableMessageInterface|null = null
validateProperty()
public
validateProperty(mixed $propertyValue) : ValidationResult
Parameters
- $propertyValue : mixed