1 | <?php |
||
11 | class JsonType extends Type |
||
12 | { |
||
13 | const JSON = 'json'; // modify to match your type name |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getName() |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function requiresSQLCommentHint(AbstractPlatform $platform) |
||
54 | } |
||
55 |