UserConfigInterface.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 UserConfigInterface extends ExtensibleDataInterface
  27. {
  28. const ID = 'msp_tfa_user_config_id';
  29. const ENCODED_CONFIG = 'encoded_config';
  30. const USER_ID = 'user_id';
  31. const ENCODED_PROVIDERS = 'encoded_providers';
  32. const DEFAULT_PROVIDER = 'default_provider';
  33. /**
  34. * Get value for msp_tfa_user_config_id
  35. * @return int
  36. */
  37. public function getId();
  38. /**
  39. * Set value for msp_tfa_user_config_id
  40. * @param int $value
  41. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  42. */
  43. public function setId($value);
  44. /**
  45. * Get value for user_id
  46. * @return int
  47. */
  48. public function getUserId();
  49. /**
  50. * Set value for user_id
  51. * @param int $value
  52. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  53. */
  54. public function setUserId($value);
  55. /**
  56. * Get value for encoded_providers
  57. * @return string
  58. */
  59. public function getEncodedProviders();
  60. /**
  61. * Set value for encoded_providers
  62. * @param string $value
  63. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  64. */
  65. public function setEncodedProviders($value);
  66. /**
  67. * Get value for default_provider
  68. * @return string
  69. */
  70. public function getDefaultProvider();
  71. /**
  72. * Set value for default_provider
  73. * @param string $value
  74. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  75. */
  76. public function setDefaultProvider($value);
  77. /**
  78. * Retrieve existing extension attributes object or create a new one
  79. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigExtensionInterface|null
  80. */
  81. public function getExtensionAttributes();
  82. /**
  83. * Set an extension attributes object
  84. * @param \MSP\TwoFactorAuth\Api\Data\UserConfigExtensionInterface $extensionAttributes
  85. * @return $this
  86. */
  87. public function setExtensionAttributes(
  88. \MSP\TwoFactorAuth\Api\Data\UserConfigExtensionInterface $extensionAttributes
  89. );
  90. }