| 1 | <?php |
||
| 7 | class Cell implements CellInterface |
||
| 8 | { |
||
| 9 | use AttributesTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var Column |
||
| 13 | */ |
||
| 14 | protected $column; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var mixed |
||
| 18 | */ |
||
| 19 | protected $data; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var mixed |
||
| 23 | */ |
||
| 24 | protected $value; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param Column $column |
||
| 28 | * @param mixed $data Raw row data (array or object) |
||
| 29 | */ |
||
| 30 | public function __construct(Column $column, $data) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Column |
||
| 42 | */ |
||
| 43 | public function getColumn() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function getData() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param mixed $data |
||
| 58 | */ |
||
| 59 | public function setData($data) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param mixed $value |
||
| 66 | */ |
||
| 67 | public function setValue($value) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return mixed |
||
| 74 | */ |
||
| 75 | public function getValue() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | public function getUnescapedValue() |
||
| 87 | |||
| 88 | protected function setupValue() |
||
| 96 | |||
| 97 | protected function decorate() |
||
| 106 | } |
||
| 107 |