PasswordResetRequestEvent.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Security\Model;
  7. /**
  8. * PasswordResetRequestEvent Model
  9. *
  10. * @method string getAccountReference()
  11. * @method PasswordResetRequestEvent setAccountReference(string $reference)
  12. * @method int getRequestType()
  13. * @method string getCreatedAt()
  14. * @method PasswordResetRequestEvent setRequestType(int $requestType)
  15. * @method string getIp()
  16. * @method PasswordResetRequestEvent setIp(int $ip)
  17. *
  18. * @api
  19. * @since 100.1.0
  20. */
  21. class PasswordResetRequestEvent extends \Magento\Framework\Model\AbstractModel
  22. {
  23. /**
  24. * Type of the event under a security control definition
  25. */
  26. /**
  27. * Customer request a password reset
  28. */
  29. const CUSTOMER_PASSWORD_RESET_REQUEST = 0;
  30. /**
  31. * Admin User request a password reset
  32. */
  33. const ADMIN_PASSWORD_RESET_REQUEST = 1;
  34. /**
  35. * Initialize resource model
  36. *
  37. * @return void
  38. * @since 100.1.0
  39. */
  40. protected function _construct()
  41. {
  42. $this->_init(\Magento\Security\Model\ResourceModel\PasswordResetRequestEvent::class);
  43. }
  44. }