Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class AppendPropertyMutation implements MutationInterface |
||
18 | { |
||
19 | |||
20 | private $value; |
||
21 | |||
22 | private $path; |
||
23 | |||
24 | private $propertyName; |
||
25 | |||
26 | public function __construct(NodeValueInterface $value, PathInterface $path, string $propertyName) |
||
27 | { |
||
28 | $this->value = $value; |
||
29 | $this->path = $path; |
||
30 | $this->propertyName = $propertyName; |
||
31 | } |
||
32 | |||
33 | public function __invoke(EventInterface $event, ValueWalkerInterface $valueWalker) |
||
34 | { |
||
35 | return $this->createEventGenerator($event, $valueWalker); |
||
36 | } |
||
37 | |||
38 | public function reset(): void |
||
39 | { |
||
40 | } |
||
41 | |||
42 | private function createEventGenerator(EventInterface $event, ValueWalkerInterface $valueWalker): Generator |
||
58 | } |
||
59 | } |
||
60 |