| 1 | <?php |
||
| 17 | abstract class BaseType extends TextType |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param IntervalInterface|null $value |
||
| 21 | * @param AbstractPlatform $platform |
||
| 22 | * |
||
| 23 | * @return null|string |
||
| 24 | */ |
||
| 25 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @throws ConversionException |
||
| 34 | * |
||
| 35 | * @param mixed $value |
||
| 36 | * @param AbstractPlatform $platform |
||
| 37 | * |
||
| 38 | * @return null|IntervalInterface |
||
| 39 | */ |
||
| 40 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getName() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | abstract protected function getIntervalClass(); |
||
| 65 | } |
||
| 66 |