Total Complexity | 8 |
Total Lines | 76 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
7 | class Cell |
||
8 | { |
||
9 | /** @var NormalizerInterface $normalizer */ |
||
10 | private $normalizer; |
||
11 | /** @var string */ |
||
12 | private $value; |
||
13 | |||
14 | /** |
||
15 | * Cell constructor. |
||
16 | * |
||
17 | * @param string $value |
||
18 | * @param NormalizerInterface $normalizer |
||
19 | */ |
||
20 | 9 | public function __construct($value, NormalizerInterface $normalizer) |
|
21 | { |
||
22 | 9 | $this->setRawValue($value); |
|
23 | 9 | $this->setNormalizer($normalizer); |
|
24 | 9 | } |
|
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | 7 | public function getRawValue() |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return mixed |
||
36 | */ |
||
37 | 7 | public function getValue() |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return NormalizerInterface |
||
44 | */ |
||
45 | public function getNormalizer() |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param NormalizerInterface $normalizer |
||
52 | * |
||
53 | * @return Cell |
||
54 | */ |
||
55 | 9 | public function setNormalizer(NormalizerInterface $normalizer) |
|
56 | { |
||
57 | 9 | $this->normalizer = $normalizer; |
|
58 | |||
59 | 9 | return $this; |
|
60 | } |
||
61 | |||
62 | public function __toString() |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param mixed $value |
||
75 | * |
||
76 | * @return Cell |
||
77 | */ |
||
78 | 9 | public function setRawValue($value) |
|
85 |