Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | final class ExistingValueResult implements ValueResultInterface |
||
11 | { |
||
12 | |||
13 | private $jsonEncoder; |
||
14 | |||
15 | private $jsonDecoder; |
||
16 | |||
17 | private $value; |
||
18 | |||
19 | public function __construct( |
||
20 | ValueEncoderInterface $jsonEncoder, |
||
21 | ValueDecoderInterface $jsonDecoder, |
||
22 | ValueInterface $value |
||
23 | ) { |
||
24 | $this->jsonEncoder = $jsonEncoder; |
||
25 | $this->jsonDecoder = $jsonDecoder; |
||
26 | $this->value = $value; |
||
27 | } |
||
28 | |||
29 | public function exists(): bool |
||
30 | { |
||
31 | return true; |
||
32 | } |
||
33 | |||
34 | public function encode(): string |
||
39 | } |
||
40 | |||
41 | public function decode() |
||
46 | } |
||
47 | } |
||
48 |