NotEmpty extends AbstractPropertyValidationAttribute
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Methods
- __construct() : mixed
- validateProperty() : ValidationResult
Methods
__construct()
public
__construct([bool $allowZero = false ][, bool $allowSpaces = false ][, string|LocalizableMessageInterface|null $errorMessage = null ]) : mixed
Parameters
- $allowZero : bool = false
- $allowSpaces : bool = false
- $errorMessage : string|LocalizableMessageInterface|null = null
validateProperty()
public
validateProperty(mixed $propertyValue) : ValidationResult
Parameters
- $propertyValue : mixed