aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/DependencyTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/DependencyTrait.php')
-rw-r--r--apps/files_external/lib/Lib/DependencyTrait.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/DependencyTrait.php b/apps/files_external/lib/Lib/DependencyTrait.php
new file mode 100644
index 00000000000..644132b82bc
--- /dev/null
+++ b/apps/files_external/lib/Lib/DependencyTrait.php
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OCA\Files_External\Lib;
+
+/**
+ * Trait for objects that have dependencies for use
+ */
+trait DependencyTrait {
+
+ /**
+ * Check if object is valid for use
+ *
+ * @return MissingDependency[] Unsatisfied dependencies
+ */
+ public function checkDependencies() {
+ return []; // no dependencies by default
+ }
+}