TrustedInterface.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?php
  2. /**
  3. * MageSpecialist
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Open Software License (OSL 3.0)
  8. * that is bundled with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/osl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to info@magespecialist.it so we can send you a copy immediately.
  14. *
  15. * @category MSP
  16. * @package MSP_TwoFactorAuth
  17. * @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
  18. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  19. */
  20. /**
  21. * Automatically created by MageSpecialist CodeMonkey
  22. * https://github.com/magespecialist/m2-MSP_CodeMonkey
  23. */
  24. namespace MSP\TwoFactorAuth\Api\Data;
  25. use Magento\Framework\Api\ExtensibleDataInterface;
  26. interface TrustedInterface extends ExtensibleDataInterface
  27. {
  28. const ID = 'msp_tfa_trusted_id';
  29. const DATE_TIME = 'date_time';
  30. const USER_ID = 'user_id';
  31. const DEVICE_NAME = 'device_name';
  32. const TOKEN = 'token';
  33. const LAST_IP = 'last_ip';
  34. const USER_AGENT = 'user_agent';
  35. /**
  36. * Get value for msp_tfa_trusted_id
  37. * @return int
  38. */
  39. public function getId();
  40. /**
  41. * Set value for msp_tfa_trusted_id
  42. * @param int $value
  43. * @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  44. */
  45. public function setId($value);
  46. /**
  47. * Get value for date_time
  48. * @return string
  49. */
  50. public function getDateTime();
  51. /**
  52. * Set value for date_time
  53. * @param string $value
  54. * @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  55. */
  56. public function setDateTime($value);
  57. /**
  58. * Get value for user_id
  59. * @return int
  60. */
  61. public function getUserId();
  62. /**
  63. * Set value for user_id
  64. * @param int $value
  65. * @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  66. */
  67. public function setUserId($value);
  68. /**
  69. * Get value for device_name
  70. * @return string
  71. */
  72. public function getDeviceName();
  73. /**
  74. * Set value for device_name
  75. * @param string $value
  76. * @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  77. */
  78. public function setDeviceName($value);
  79. /**
  80. * Get value for last_ip
  81. * @return string
  82. */
  83. public function getLastIp();
  84. /**
  85. * Set value for last_ip
  86. * @param string $value
  87. * @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  88. */
  89. public function setLastIp($value);
  90. /**
  91. * Get value for user_agent
  92. * @return string
  93. */
  94. public function getUserAgent();
  95. /**
  96. * Set value for user_agent
  97. * @param string $value
  98. * @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  99. */
  100. public function setUserAgent($value);
  101. /**
  102. * Retrieve existing extension attributes object or create a new one
  103. * @return \MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface|null
  104. */
  105. public function getExtensionAttributes();
  106. /**
  107. * Set an extension attributes object
  108. * @param \MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface $extensionAttributes
  109. * @return $this
  110. */
  111. public function setExtensionAttributes(
  112. \MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface $extensionAttributes
  113. );
  114. }