| 1 | <?php | ||
| 7 | class Cell | ||
| 8 | { | ||
| 9 | /** @var NormalizerInterface $normalizer */ | ||
| 10 | protected $normalizer; | ||
| 11 | protected $value; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * Cell constructor. | ||
| 15 | * | ||
| 16 | * @param $value | ||
| 17 | * @param NormalizerInterface $normalizer | ||
| 18 | */ | ||
| 19 | 4 | public function __construct($value, NormalizerInterface $normalizer) | |
| 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 NormalizerInterface | ||
| 43 | */ | ||
| 44 | 2 | public function getNormalizer() | |
| 45 |     { | ||
| 46 | 2 | return $this->normalizer; | |
| 47 | } | ||
| 48 | |||
| 49 | /** | ||
| 50 | * @param NormalizerInterface $normalizer | ||
| 51 | * | ||
| 52 | * @return Cell | ||
| 53 | */ | ||
| 54 | 4 | public function setNormalizer(NormalizerInterface $normalizer) | |
| 55 |     { | ||
| 56 | 4 | $this->normalizer = $normalizer; | |
| 57 | |||
| 58 | 4 | return $this; | |
| 59 | } | ||
| 60 | |||
| 61 | public function __toString() | ||
| 71 | |||
| 72 | /** | ||
| 73 | * @param mixed $value | ||
| 74 | * | ||
| 75 | * @return Cell | ||
| 76 | */ | ||
| 77 | 4 | public function setRawValue($value) | |
| 83 | } | ||
| 84 |