1 | <?php |
||
19 | abstract class BaseType extends TextType |
||
20 | { |
||
21 | /** |
||
22 | * @param IntervalInterface|null $value |
||
23 | * @param AbstractPlatform $platform |
||
24 | * |
||
25 | * @return null|string |
||
26 | */ |
||
27 | 18 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
|
33 | |||
34 | /** |
||
35 | * @throws ConversionException |
||
36 | * |
||
37 | * @param mixed $value |
||
38 | * @param AbstractPlatform $platform |
||
39 | * |
||
40 | * @return null|IntervalInterface |
||
41 | */ |
||
42 | 18 | public function convertToPHPValue($value, AbstractPlatform $platform) |
|
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | 9 | public function getName() |
|
64 | |||
65 | /** |
||
66 | * @return bool |
||
67 | */ |
||
68 | 9 | public function requiresSQLCommentHint(AbstractPlatform $platform) |
|
69 | { |
||
70 | 9 | return true; |
|
71 | } |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | abstract protected function getIntervalClass(); |
||
77 | } |
||
78 |