key = $key; $this->name = $name; $this->moduleKey = $moduleKey; $this->registerGroupInstances = $registerGroupInstances; $this->signals = $signals; } public function getRegisterGroupInstance(string $key): ?RegisterGroupInstance { foreach ($this->registerGroupInstances as $instance) { if ($instance->key === $key) { return $instance; } } return null; } }