| 1 | <?php |
||
| 7 | class StringColumn extends Column implements LimitableInterface |
||
| 8 | { |
||
| 9 | private $limit; |
||
| 10 | |||
| 11 | public function __construct($name, array $options = array()) |
||
| 19 | /** |
||
| 20 | * Get column type name. |
||
| 21 | * |
||
| 22 | * @return string Column type name. |
||
| 23 | */ |
||
| 24 | public function getType() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get default value of column. |
||
| 31 | * |
||
| 32 | * @return mixed Default value of column. |
||
| 33 | */ |
||
| 34 | public function getDefault() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get characters limit. |
||
| 41 | * |
||
| 42 | * @return integer Number of characters. |
||
| 43 | */ |
||
| 44 | public function getLimit() |
||
| 48 | } |
||
| 49 |