1
0

GenerateSecurePasswordEvent.php 565 B

123456789101112131415161718192021222324252627282930313233
  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\Security\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * @since 18.0.0
  11. */
  12. class GenerateSecurePasswordEvent extends Event {
  13. /** @var null|string */
  14. private $password;
  15. /**
  16. * @since 18.0.0
  17. */
  18. public function getPassword(): ?string {
  19. return $this->password;
  20. }
  21. /**
  22. * @since 18.0.0
  23. */
  24. public function setPassword(string $password): void {
  25. $this->password = $password;
  26. }
  27. }