blob: 323974345d6d25286ee21bfbf8c3429582c87d26 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/**
4 * Thanks to https://github.com/flaushi for his suggestion:
5 * https://github.com/doctrine/dbal/issues/2873#issuecomment-534956358
6 */
7namespace Carbon\Doctrine;
8
9use Doctrine\DBAL\Platforms\AbstractPlatform;
10
11class CarbonImmutableType extends DateTimeImmutableType implements CarbonDoctrineType
12{
13 /**
14 * {@inheritdoc}
15 */
16 public function getName()
17 {
18 return 'carbon_immutable';
19 }
20
21 /**
22 * {@inheritdoc}
23 */
24 public function requiresSQLCommentHint(AbstractPlatform $platform)
25 {
26 return true;
27 }
28}