| 1 | <?php |
||
| 7 | class Cell |
||
| 8 | { |
||
| 9 | /** @var FormatterInterface $formatter */ |
||
| 10 | protected $formatter; |
||
| 11 | protected $value; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Cell constructor. |
||
| 15 | * |
||
| 16 | * @param $value |
||
| 17 | * @param FormatterInterface $formatter |
||
| 18 | */ |
||
| 19 | 4 | public function __construct($value, FormatterInterface $formatter) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 2 | public function getRawValue() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | 2 | public function getValue() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return FormatterInterface |
||
| 43 | */ |
||
| 44 | 2 | public function getFormatter() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param FormatterInterface $formatter |
||
| 51 | * |
||
| 52 | * @return Cell |
||
| 53 | */ |
||
| 54 | 4 | public function setFormatter(FormatterInterface $formatter) |
|
| 60 | |||
| 61 | public function __toString() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param mixed $value |
||
| 74 | * |
||
| 75 | * @return Cell |
||
| 76 | */ |
||
| 77 | 4 | public function setRawValue($value) |
|
| 83 | } |
||
| 84 |