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