| Total Complexity | 0 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class Column implements Annotation |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | public $name; |
||
| 15 | |||
| 16 | /** @var mixed */ |
||
| 17 | public $type = 'string'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The length for a string column (Applied only for string-based column). |
||
| 21 | * |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | public $length = 255; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The precision for a decimal (exact numeric) column (Applies only for decimal column). |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | public $precision = 0; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The scale for a decimal (exact numeric) column (Applies only for decimal column). |
||
| 35 | * |
||
| 36 | * @var int |
||
| 37 | */ |
||
| 38 | public $scale = 0; |
||
| 39 | |||
| 40 | /** @var bool */ |
||
| 41 | public $unique = false; |
||
| 42 | |||
| 43 | /** @var bool */ |
||
| 44 | public $nullable = false; |
||
| 45 | |||
| 46 | /** @var array */ |
||
| 47 | public $options = []; |
||
| 48 | |||
| 49 | /** @var string */ |
||
| 50 | public $columnDefinition; |
||
| 51 | } |
||
| 52 |