| 1 | <?php |
||
| 8 | class YearColumn extends AbstractTemporalColumn implements RequiredLengthInterface { |
||
| 9 | |||
| 10 | use RequiredLengthTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $name |
||
| 14 | * @param int $length 2 or 4 |
||
| 15 | */ |
||
| 16 | public function __construct( $name, $length = 4 ) { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param int $length 2 or 4 |
||
| 23 | */ |
||
| 24 | public function setLength( $length ) { |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getTypeName() { |
||
| 39 | } |
||
| 40 |