setUser(null); $this->initialized = true; return $this; } /** * @override */ public function initForModifyAdmin(string|User $userId): static { $this->setUser($userId); $this->initialized = true; return $this; } /** * @override */ public function initForCreate(string|Contract $contractId): static { throw new LogicException("不許可な関数アクセス"); } /** * @override */ public function initForModify(string|Contract $contractId, string|User $userId): static { throw new LogicException("不許可な関数アクセス"); } protected function role(): UserRole { return UserRole::SUPER_ADMIN; } }