AtLeastOnePropertyNotEmpty extends AbstractClassValidationAttribute
FinalYes
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Methods
- __construct() : mixed
- validateObject() : ValidationResult
Methods
__construct()
public
__construct(array<string|int, mixed> $fields[, bool $allowZero = false ][, bool $allowEmptyString = false ][, string|LocalizableMessageInterface|null $errorMessage = null ]) : mixed
Parameters
- $fields : array<string|int, mixed>
- $allowZero : bool = false
- $allowEmptyString : bool = false
- $errorMessage : string|LocalizableMessageInterface|null = null
validateObject()
public
validateObject(object $object) : ValidationResult
Parameters
- $object : object