1 | <?php |
||
15 | class PostcodeType extends Type |
||
16 | { |
||
17 | const POSTCODE = 'postcode'; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | * |
||
22 | * @param array $fieldDeclaration |
||
23 | * @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform |
||
24 | */ |
||
25 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
||
29 | 2 | ||
30 | /** |
||
31 | 2 | * {@inheritdoc} |
|
32 | * |
||
33 | * @param string|null $value |
||
34 | * @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform |
||
35 | */ |
||
36 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
54 | |||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | * |
||
59 | * @param Postcode|null $value |
||
60 | * @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform |
||
61 | */ |
||
62 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
||
74 | 1 | ||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getName() |
||
85 | |||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | * |
||
90 | * @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform |
||
91 | * @return boolean |
||
92 | */ |
||
93 | public function requiresSQLCommentHint(AbstractPlatform $platform) |
||
97 | } |
||
98 |