get($value); if ($group === null) { throw new InvalidArgumentException('Group ' . $value . ' not found'); } $this->group = $group; } public function get(): IGroup { return $this->group; } }