| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 53.33% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Cell |
||
| 10 | { |
||
| 11 | private NormalizerInterface $normalizer; |
||
| 12 | private string $value; |
||
| 13 | |||
| 14 | 13 | public function __construct(string $value, NormalizerInterface $normalizer) |
|
| 15 | { |
||
| 16 | 13 | $this->value = $value; |
|
| 17 | 13 | $this->normalizer = $normalizer; |
|
| 18 | 13 | } |
|
| 19 | |||
| 20 | /** @return mixed */ |
||
| 21 | 11 | public function getValue() |
|
| 22 | { |
||
| 23 | 11 | return $this->normalizer->normalize($this->getRawValue()); |
|
| 24 | } |
||
| 25 | |||
| 26 | 11 | public function getRawValue(): string |
|
| 29 | } |
||
| 30 | |||
| 31 | public function getNormalizer(): NormalizerInterface |
||
| 34 | } |
||
| 35 | |||
| 36 | public function __toString(): string |
||
| 47 |