1 | <?php |
||
9 | class Datagen |
||
10 | { |
||
11 | private $loader; |
||
12 | private $processors = []; |
||
13 | |||
14 | 2 | public function __construct(Loader $loader, iterable $processors) |
|
21 | |||
22 | 2 | public function load(array $groups = [], array $excludeGroups = [], array $options = []): void |
|
36 | |||
37 | 2 | private function getProcessor(string $name): ProcessorInterface |
|
45 | } |
||
46 |
It seems like you are relying on a variable being defined by an iteration: