1 | <?php |
||
29 | class DocumentNumberType extends Type |
||
30 | { |
||
31 | const NAME = 'stepup_document_number'; |
||
32 | |||
33 | /** |
||
34 | * @param array $fieldDeclaration |
||
35 | * @param AbstractPlatform $platform |
||
36 | * @return string |
||
37 | * @throws \Doctrine\DBAL\DBALException |
||
38 | */ |
||
39 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
||
43 | |||
44 | /** |
||
45 | * @param mixed $value |
||
46 | * @param AbstractPlatform $platform |
||
47 | * @return null|string |
||
48 | */ |
||
49 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
||
57 | |||
58 | /** |
||
59 | * @param mixed $value |
||
60 | * @param AbstractPlatform $platform |
||
61 | * @return null|DocumentNumber |
||
62 | * @throws ConversionException |
||
63 | */ |
||
64 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
72 | |||
73 | public function getName() |
||
77 | } |
||
78 |