| Total Complexity | 4 |
| Total Lines | 36 |
| 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 | 5 | public function __construct( |
|
| 27 | 5 | } |
|
| 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 |