1
0

TestMoveableMountPoint.php 657 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace Test;
  8. use OC\Files\Mount;
  9. /**
  10. * Test moveable mount for mocking
  11. */
  12. class TestMoveableMountPoint extends Mount\MountPoint implements Mount\MoveableMount {
  13. /**
  14. * Move the mount point to $target
  15. *
  16. * @param string $target the target mount point
  17. * @return bool
  18. */
  19. public function moveMount($target) {
  20. $this->setMountPoint($target);
  21. }
  22. /**
  23. * Remove the mount points
  24. *
  25. * @return mixed
  26. * @return bool
  27. */
  28. public function removeMount() {
  29. }
  30. }