1 | <?php |
||
11 | class Merge implements Processor |
||
12 | { |
||
13 | use Processor\Implementation; |
||
14 | |||
15 | /** |
||
16 | * Apply processing to a single node |
||
17 | * |
||
18 | * @param Node $node |
||
19 | */ |
||
20 | 3 | public function applyToNode(Node $node) |
|
29 | |||
30 | /** |
||
31 | * Resolve processing nodes in the instruction |
||
32 | * |
||
33 | * @param array $list |
||
34 | * @return array |
||
35 | */ |
||
36 | 3 | public function resolve($list) |
|
54 | |||
55 | /** |
||
56 | * Merge properties of an object |
||
57 | * |
||
58 | * @param array $list |
||
59 | * @return \stdClass|array|string |
||
60 | */ |
||
61 | 3 | protected function merge(array $list) |
|
90 | } |
||
91 |