1
0

DependencyTrait.php 497 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Files_External\Lib;
  8. /**
  9. * Trait for objects that have dependencies for use
  10. */
  11. trait DependencyTrait {
  12. /**
  13. * Check if object is valid for use
  14. *
  15. * @return MissingDependency[] Unsatisfied dependencies
  16. */
  17. public function checkDependencies() {
  18. return []; // no dependencies by default
  19. }
  20. }