2 declare(strict_types = 1);
47 public function forEach(...$processings): array
52 foreach ($this->data as $key => $value) {
53 foreach ($processings as $processing) {
59 $processing->getExpression()
62 if (preg_match(
'#' .
$expression .
'#', $key, $matches)) {
81 $validProcessings = [];
83 foreach ($allProcessings as $processing) {
85 if (in_array($processing->getIdentifier(), $identifiers,
true)) {
87 'ArrayProcessing identifier must be unique.',
91 $identifiers[] = $processing->getIdentifier();
92 $validProcessings[] = $processing;
95 return $validProcessings;