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