HomeMountPoint.php 741 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Files\Mount;
  8. use OCP\Files\Storage\IStorageFactory;
  9. use OCP\IUser;
  10. class HomeMountPoint extends MountPoint {
  11. private IUser $user;
  12. public function __construct(
  13. IUser $user,
  14. $storage,
  15. string $mountpoint,
  16. ?array $arguments = null,
  17. ?IStorageFactory $loader = null,
  18. ?array $mountOptions = null,
  19. ?int $mountId = null,
  20. ?string $mountProvider = null,
  21. ) {
  22. parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId, $mountProvider);
  23. $this->user = $user;
  24. }
  25. public function getUser(): IUser {
  26. return $this->user;
  27. }
  28. }