1 | <?php |
||
10 | class DateIntervalType extends Type |
||
11 | { |
||
12 | const FORMAT = '%RP%YY%MM%DDT%HH%IM%SS'; |
||
13 | |||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | 32 | public function getName() |
|
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 1 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 16 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 4 | public function convertToPHPValue($value, AbstractPlatform $platform) |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 749 | public function requiresSQLCommentHint(AbstractPlatform $platform) |
|
78 | } |
||
79 |