| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | final class StrictPropertyMatcher implements SortedChildMatcherInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | private $properties; |
||
| 15 | |||
| 16 | 3 | public function __construct(string ...$properties) |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | 3 | public function match($address, NodeValueInterface $value, NodeValueInterface $container): bool |
|
| 22 | { |
||
| 23 | 3 | return in_array($address, $this->properties, true); |
|
| 24 | } |
||
| 25 | |||
| 26 | public function getSortIndex($address, NodeValueInterface $value, NodeValueInterface $container): int |
||
| 35 | } |
||
| 36 | } |
||
| 37 |