| 1 | <?php |
||
| 8 | class ColumnRule extends Rule implements RuleInterface |
||
| 9 | { |
||
| 10 | const TYPE_DATE = 0; |
||
| 11 | const TYPE_FLOAT = 1; |
||
| 12 | const TYPE_ID = 2; |
||
| 13 | const TYPE_INT = 3; |
||
| 14 | const TYPE_STRING = 4; |
||
| 15 | |||
| 16 | protected $title; |
||
| 17 | protected $type; |
||
| 18 | |||
| 19 | public function __construct($title, $type, $length) |
||
| 25 | |||
| 26 | public function setTitle($title) |
||
| 30 | |||
| 31 | public function getTitle() |
||
| 35 | |||
| 36 | public function setType($type) |
||
| 40 | |||
| 41 | public function getType() |
||
| 45 | } |
||
| 46 |