| 1 | <?php |
||
| 5 | class Mapping extends Column |
||
| 6 | { |
||
| 7 | protected $mappings = [ |
||
| 8 | '0' => 'No', |
||
| 9 | '1' => 'Yes', |
||
| 10 | ]; |
||
| 11 | |||
| 12 | public function __construct($name, $label, $mappings = null) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getMappings() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array|\Closure $mappings |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setMappings($mappings) |
||
| 44 | |||
| 45 | public function getValue() |
||
| 50 | } |
||
| 51 |