blob: ccc457fcd20f5353582df24827c45831ce00ea45 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/**
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01004 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <brian@nesbot.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020010 */
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020012namespace Carbon\Doctrine;
13
14use Doctrine\DBAL\Platforms\AbstractPlatform;
15
16interface CarbonDoctrineType
17{
18 public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform);
19
20 public function convertToPHPValue($value, AbstractPlatform $platform);
21
22 public function convertToDatabaseValue($value, AbstractPlatform $platform);
23}