BeforeGroupCreatedEvent.php 566 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Group\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * @since 18.0.0
  11. */
  12. class BeforeGroupCreatedEvent extends Event {
  13. /** @var string */
  14. private $name;
  15. /**
  16. * @since 18.0.0
  17. */
  18. public function __construct(string $name) {
  19. parent::__construct();
  20. $this->name = $name;
  21. }
  22. /**
  23. * @return string
  24. * @since 18.0.0
  25. */
  26. public function getName(): string {
  27. return $this->name;
  28. }
  29. }