| 1 | <?php |
||
| 7 | final class DBALTypesResolver |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The map of supported doctrine mapping types. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private static $typesMap = array(); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Try get type for value. |
||
| 18 | * |
||
| 19 | * If type is not found return NULL. |
||
| 20 | * |
||
| 21 | * @param mixed $value |
||
| 22 | * |
||
| 23 | * @return Type|null |
||
| 24 | */ |
||
| 25 | public static function tryGetTypeForValue($value) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Adds a custom type to the type map for resolve Value Object. |
||
| 52 | * |
||
| 53 | * @param string $name the name of the type |
||
| 54 | * @param string $className the class name of the Value Object |
||
| 55 | */ |
||
| 56 | public static function addType($name, $className) |
||
| 60 | } |
||
| 61 |