$generators */ private array $generators = []; /** * Constructs the generator info object. * * The generators are passed by reference as there are no getters for them. * That isolates data from listeners. * * @psalm-param list<\Symfony\Component\Console\Command\Command> $generators */ public function __construct(array &$generators) { $this->generators = &$generators; } /** * Adds generators. */ public function addGenerators(Command ...$generators): void { $this->generators = \array_merge($this->generators, $generators); } }