| Total Complexity | 11 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class SaveOrder implements BeforeMergeModifierInterface, AfterMergeModifierInterface |
||
| 18 | { |
||
| 19 | private array $array = []; |
||
| 20 | |||
| 21 | public function beforeMerge(array $arrays, int $index): array |
||
| 25 | } |
||
| 26 | |||
| 27 | public function afterMerge(array $data): array |
||
| 28 | { |
||
| 29 | return $this->applyOrder($data, $this->array); |
||
| 30 | } |
||
| 31 | |||
| 32 | private function applyOrder(array $data, array $array): array |
||
| 57 | } |
||
| 58 | } |
||
| 59 |