| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ExistingResult implements ResultInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | private $encoder; |
||
| 14 | |||
| 15 | private $decoder; |
||
| 16 | |||
| 17 | private $nodeValue; |
||
| 18 | |||
| 19 | 6 | public function __construct( |
|
| 27 | 6 | } |
|
| 28 | |||
| 29 | 1 | public function exists(): bool |
|
| 30 | { |
||
| 31 | 1 | return true; |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | public function encode(): string |
|
| 35 | { |
||
| 36 | return $this |
||
| 37 | 2 | ->encoder |
|
| 38 | 2 | ->exportValue($this->nodeValue); |
|
| 39 | } |
||
| 40 | |||
| 41 | 2 | public function decode() |
|
| 46 | } |
||
| 47 | |||
| 48 | 1 | public function get(): NodeValueInterface |
|
| 53 |