| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class Pair implements Value |
||
| 10 | { |
||
| 11 | /** @var Scalar */ |
||
| 12 | private $key; |
||
| 13 | |||
| 14 | /** @var ValuableNode */ |
||
| 15 | private $value; |
||
| 16 | |||
| 17 | 3 | public function __construct(Scalar $key, ValuableNode $value) |
|
| 18 | { |
||
| 19 | 3 | $this->key = $key; |
|
| 20 | 3 | $this->value = $value; |
|
| 21 | 3 | } |
|
| 22 | |||
| 23 | 1 | public function getKey() : Scalar |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function getValue() : ValuableNode |
|
| 29 | { |
||
| 30 | 1 | return $this->value; |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function dispatch(Visitor $visitor) : void |
|
| 36 | 1 | } |
|
| 37 | } |
||
| 38 |