key = $key; $this->name = $name; $this->moduleKey = $moduleKey; $this->registerGroupReferences = $registerGroupReferences; $this->signals = $signals; } public function getRegisterGroupReference(string $key): ?RegisterGroupReference { foreach ($this->registerGroupReferences as $reference) { if ($reference->key === $key) { return $reference; } } return null; } }