1
0

MissingDependency.php 813 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 */
  13. private $dependency;
  14. /** @var string|null Custom message */
  15. private $message = null;
  16. /**
  17. * @param string $dependency
  18. */
  19. public function __construct($dependency) {
  20. $this->dependency = $dependency;
  21. }
  22. public function getDependency(): string {
  23. return $this->dependency;
  24. }
  25. public function getMessage(): ?string {
  26. return $this->message;
  27. }
  28. /**
  29. * @param string $message
  30. * @return self
  31. */
  32. public function setMessage($message) {
  33. $this->message = $message;
  34. return $this;
  35. }
  36. }