mini\Converter\ConverterRegistryInterface::get()
Method
public
abstract
Signature
public abstract function get(mixed $input, string $targetType, ?string $sourceType = NULL): ?mini\Converter\ConverterInterface
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$input |
mixed |
required | Documentation missing |
$targetType |
string |
required | Documentation missing |
$sourceType |
?string |
NULL
|
Documentation missing |
Returns
Documentation
Get the converter for input to target type
Returns the most specific converter based on type hierarchy:
- Direct single-type converter (most specific)
- Union type converter (less specific)
- Parent class converters
- Interface converters