Skip to content

API DataValidator_Filters RequiredIfNotEmpty

Christophe SAUVEUR edited this page Apr 21, 2024 · 1 revision

RequiredIfNotEmpty Class

chsxf\MFX\DataValidator\Filters

class RequiredIfNotEmpty extends chsxf\MFX\DataValidator\AbstractOtherFieldFilter

Summary

Description of a filter validating when provided along with other fields.

Since 1.0

Methods

__construct

public function __construct(DataValidator\Field|array $otherFields, ?string $message = null)

Constructor

Since 1.0

Parameters

Name Type Description
$otherFields `Field array`
$message string Error message

Clone this wiki locally