1
0

FederatedShareAddedEvent.php 626 B

123456789101112131415161718192021222324252627282930313233343536
  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. /** @var string */
  16. private $remote;
  17. /**
  18. * @since 20.0.0
  19. */
  20. public function __construct(string $remote) {
  21. $this->remote = $remote;
  22. }
  23. /**
  24. * @since 20.0.0
  25. */
  26. public function getRemote(): string {
  27. return $this->remote;
  28. }
  29. }