1
0

FederatedShareAddedEvent.php 574 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\FederatedFileSharing\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * This event is triggered when a federated share is successfully added
  11. *
  12. * @since 20.0.0
  13. */
  14. class FederatedShareAddedEvent extends Event {
  15. /**
  16. * @since 20.0.0
  17. */
  18. public function __construct(
  19. private string $remote,
  20. ) {
  21. }
  22. /**
  23. * @since 20.0.0
  24. */
  25. public function getRemote(): string {
  26. return $this->remote;
  27. }
  28. }