1 | <?php |
||
18 | final class DBALTypesResolver |
||
19 | { |
||
20 | /** |
||
21 | * The map of supported doctrine mapping types. |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $typesMap = []; |
||
26 | |||
27 | /** |
||
28 | * Try get type for value. |
||
29 | * |
||
30 | * If type is not found return NULL. |
||
31 | * |
||
32 | * @param mixed $value |
||
33 | * |
||
34 | * @return Type|null |
||
35 | */ |
||
36 | public static function tryGetTypeForValue($value) |
||
60 | |||
61 | /** |
||
62 | * Adds a custom type to the type map for resolve Value Object. |
||
63 | * |
||
64 | * @param string $name the name of the type |
||
65 | * @param string $className the class name of the Value Object |
||
66 | */ |
||
67 | public static function addType($name, $className) |
||
71 | } |
||
72 |