1
0

MissingDependency.php 749 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-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. * External storage backend dependency
  10. */
  11. class MissingDependency {
  12. /** @var string|null Custom message */
  13. private $message = null;
  14. /**
  15. * @param string $dependency
  16. */
  17. public function __construct(
  18. private $dependency,
  19. ) {
  20. }
  21. public function getDependency(): string {
  22. return $this->dependency;
  23. }
  24. public function getMessage(): ?string {
  25. return $this->message;
  26. }
  27. /**
  28. * @param string $message
  29. * @return self
  30. */
  31. public function setMessage($message) {
  32. $this->message = $message;
  33. return $this;
  34. }
  35. }