Trusted.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. /**
  3. * Automatically created by MageSpecialist CodeMonkey
  4. * https://github.com/magespecialist/m2-MSP_CodeMonkey
  5. */
  6. namespace MSP\TwoFactorAuth\Model\Data;
  7. use Magento\Framework\Api\AbstractExtensibleObject;
  8. class Trusted extends AbstractExtensibleObject implements
  9. \MSP\TwoFactorAuth\Api\Data\TrustedInterface
  10. {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function getId()
  15. {
  16. return $this->_get(self::ID);
  17. }
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function setId($value)
  22. {
  23. $this->setData(self::ID, $value);
  24. return $this;
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function getDateTime()
  30. {
  31. return $this->_get(self::DATE_TIME);
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function setDateTime($value)
  37. {
  38. $this->setData(self::DATE_TIME, $value);
  39. return $this;
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function getUserId()
  45. {
  46. return $this->_get(self::USER_ID);
  47. }
  48. /**
  49. * {@inheritdoc}
  50. */
  51. public function setUserId($value)
  52. {
  53. $this->setData(self::USER_ID, $value);
  54. return $this;
  55. }
  56. /**
  57. * {@inheritdoc}
  58. */
  59. public function getDeviceName()
  60. {
  61. return $this->_get(self::DEVICE_NAME);
  62. }
  63. /**
  64. * {@inheritdoc}
  65. */
  66. public function setDeviceName($value)
  67. {
  68. $this->setData(self::DEVICE_NAME, $value);
  69. return $this;
  70. }
  71. /**
  72. * {@inheritdoc}
  73. */
  74. public function getToken()
  75. {
  76. return $this->_get(self::TOKEN);
  77. }
  78. /**
  79. * {@inheritdoc}
  80. */
  81. public function setToken($value)
  82. {
  83. $this->setData(self::TOKEN, $value);
  84. return $this;
  85. }
  86. /**
  87. * {@inheritdoc}
  88. */
  89. public function getLastIp()
  90. {
  91. return $this->_get(self::LAST_IP);
  92. }
  93. /**
  94. * {@inheritdoc}
  95. */
  96. public function setLastIp($value)
  97. {
  98. $this->setData(self::LAST_IP, $value);
  99. return $this;
  100. }
  101. /**
  102. * {@inheritdoc}
  103. */
  104. public function getUserAgent()
  105. {
  106. return $this->_get(self::USER_AGENT);
  107. }
  108. /**
  109. * {@inheritdoc}
  110. */
  111. public function setUserAgent($value)
  112. {
  113. $this->setData(self::USER_AGENT, $value);
  114. return $this;
  115. }
  116. /**
  117. * {@inheritdoc}
  118. */
  119. public function getExtensionAttributes()
  120. {
  121. return $this->_get(self::EXTENSION_ATTRIBUTES_KEY);
  122. }
  123. /**
  124. * {@inheritdoc}
  125. */
  126. public function setExtensionAttributes(
  127. \MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface $extensionAttributes
  128. ) {
  129. return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
  130. }
  131. }