1 | <?php |
||
49 | class EnumVhosttypeType extends Type |
||
50 | { |
||
51 | /** |
||
52 | * Virtual host type enumeration |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | const ENUM_TYPE = 'enumvhosttype'; |
||
57 | |||
58 | /** |
||
59 | * Gets the SQL declaration snippet for a field of this type. |
||
60 | * |
||
61 | * @param array $fieldDeclaration The field declaration |
||
62 | * @param AbstractPlatform $platform The currently used database platform |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
||
70 | |||
71 | /** |
||
72 | * Convert the database value to a PHP value |
||
73 | * |
||
74 | * @param mixed $value Database value |
||
75 | * @param AbstractPlatform $platform The currently used database platform |
||
76 | * @return string PHP value |
||
77 | */ |
||
78 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
82 | |||
83 | /** |
||
84 | * Convert PHP value to database value |
||
85 | * |
||
86 | * @param string $value PHP value |
||
87 | * @param AbstractPlatform $platform The currently used database platform |
||
88 | * @return string Database value |
||
89 | */ |
||
90 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
||
97 | |||
98 | /** |
||
99 | * Gets the name of this type. |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getName() |
||
107 | } |
||
108 |