Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
13 | final class DeletePropertyMutation implements MutationInterface |
||
14 | { |
||
15 | |||
16 | private $path; |
||
17 | |||
18 | public function __construct(PathInterface $path) |
||
19 | { |
||
20 | $this->path = $path; |
||
21 | } |
||
22 | |||
23 | public function __invoke(EventInterface $event, ValueWalkerInterface $valueWalker): Iterator |
||
24 | { |
||
25 | if ($this->path->contains($event->getPath())) { |
||
26 | return; |
||
27 | } |
||
28 | yield $event; |
||
29 | } |
||
30 | |||
31 | public function reset(): void |
||
33 | } |
||
34 | } |
||
35 |