UserConfig.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 UserConfig extends AbstractExtensibleObject implements
  9. \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  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 getEncodedConfig()
  30. {
  31. return $this->_get(self::ENCODED_CONFIG);
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function setEncodedConfig($value)
  37. {
  38. $this->setData(self::ENCODED_CONFIG, $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 getEncodedProviders()
  60. {
  61. return $this->_get(self::ENCODED_PROVIDERS);
  62. }
  63. /**
  64. * {@inheritdoc}
  65. */
  66. public function setEncodedProviders($value)
  67. {
  68. $this->setData(self::ENCODED_PROVIDERS, $value);
  69. return $this;
  70. }
  71. /**
  72. * {@inheritdoc}
  73. */
  74. public function getDefaultProvider()
  75. {
  76. return $this->_get(self::DEFAULT_PROVIDER);
  77. }
  78. /**
  79. * {@inheritdoc}
  80. */
  81. public function setDefaultProvider($value)
  82. {
  83. $this->setData(self::DEFAULT_PROVIDER, $value);
  84. return $this;
  85. }
  86. /**
  87. * {@inheritdoc}
  88. */
  89. public function getExtensionAttributes()
  90. {
  91. return $this->_get(self::EXTENSION_ATTRIBUTES_KEY);
  92. }
  93. /**
  94. * {@inheritdoc}
  95. */
  96. public function setExtensionAttributes(
  97. \MSP\TwoFactorAuth\Api\Data\UserConfigExtensionInterface $extensionAttributes
  98. ) {
  99. return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
  100. }
  101. }