API DataValidator FieldTypeRegistry - chsxf/mfx GitHub Wiki
FieldTypeRegistry Class
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 |