| 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) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Merge properties of an object |
||
| 53 | * |
||
| 54 | * @param array $list |
||
| 55 | * @return \stdClass|array |
||
| 56 | */ |
||
| 57 | 3 | protected function merge(array $list) |
|
| 74 | } |
||
| 75 |