API DataValidator_Filters RequiredIfNotEmpty - chsxf/mfx GitHub Wiki

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