1 | <?php |
||
5 | class Mapping extends Column |
||
6 | { |
||
7 | protected $type = 'mapping'; |
||
8 | |||
9 | protected $mappings = [ |
||
10 | '0' => 'No', |
||
11 | '1' => 'Yes', |
||
12 | ]; |
||
13 | |||
14 | public function __construct($name, $label, $mappings = null) |
||
22 | |||
23 | /** |
||
24 | * @return array |
||
25 | */ |
||
26 | public function getMappings() |
||
30 | |||
31 | /** |
||
32 | * @param array|\Closure $mappings |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | public function setMappings($mappings) |
||
46 | |||
47 | public function getValue() |
||
53 | } |
||
54 |