| 1 | <?php |
||
| 7 | class DecimalColumn extends Column |
||
| 8 | { |
||
| 9 | private $precision; |
||
| 10 | private $scale = 0; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function __construct($name, array $options = array()) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Gets a number precision. |
||
| 29 | * |
||
| 30 | * @return integer |
||
| 31 | */ |
||
| 32 | public function getPrecision() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Gets a number scale. |
||
| 39 | * |
||
| 40 | * @return integer |
||
| 41 | */ |
||
| 42 | public function getScale() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function getType() |
||
| 54 | } |
||
| 55 |