Length extends AbstractPropertyValidationAttribute
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Methods
- __construct() : mixed
- validateProperty() : ValidationResult
Methods
__construct()
public
__construct([int|null $min = null ][, int|null $max = null ][, string|LocalizableMessageInterface|null $errorMessage = null ]) : mixed
Parameters
- $min : int|null = null
- $max : int|null = null
- $errorMessage : string|LocalizableMessageInterface|null = null
validateProperty()
public
validateProperty(mixed $propertyValue) : ValidationResult
Parameters
- $propertyValue : mixed