| 1 | <?php |
||
| 11 | final class UTCDateTimeType extends DateTimeType |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \DateTimeZone |
||
| 15 | */ |
||
| 16 | private static $utc; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function convertToPHPValue($value, AbstractPlatform $platform): ?\DateTimeInterface |
||
| 47 | |||
| 48 | private function getUTC(): \DateTimeZone |
||
| 56 | } |
||
| 57 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.