Total Complexity | 8 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
12 | final class DateTimeMicroType extends Type |
||
13 | { |
||
14 | public const NAME = 'datetime_micro'; |
||
15 | |||
16 | private const FORMAT = 'Y-m-d H:i:s.u'; |
||
17 | |||
18 | public function getName(): string |
||
19 | { |
||
20 | return self::NAME; |
||
21 | } |
||
22 | |||
23 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string |
||
26 | } |
||
27 | |||
28 | /** @param \DateTime|null $value */ |
||
29 | public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string |
||
32 | } |
||
33 | |||
34 | /** @param \DateTime|null|string $value */ |
||
35 | public function convertToPHPValue($value, AbstractPlatform $platform): ?\DateTime |
||
50 |