Skip to content

API DataValidator FieldTypeRegistry

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

FieldTypeRegistry Class

chsxf\MFX\DataValidator

final class FieldTypeRegistry

Summary

Since 1.0

Methods

registerClassForType

public static function registerClassForType(FieldType $type, string $className)

Registers a class name for a specific field type

Since 1.0

Parameters

Name Type Description
$type FieldType Field type
$className string Class name

Throws

Exception Reason
DataValidatorException If a class is already registered for this type

Clone this wiki locally