CountryInterface.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 CountryInterface extends ExtensibleDataInterface
  27. {
  28. const ID = 'msp_tfa_country_codes_id';
  29. const CODE = 'code';
  30. const NAME = 'name';
  31. const DIAL_CODE = 'dial_code';
  32. /**
  33. * Get value for msp_tfa_country_codes_id
  34. * @return int
  35. */
  36. public function getId();
  37. /**
  38. * Set value for msp_tfa_country_codes_id
  39. * @param int $value
  40. * @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
  41. */
  42. public function setId($value);
  43. /**
  44. * Get value for code
  45. * @return string
  46. */
  47. public function getCode();
  48. /**
  49. * Set value for code
  50. * @param string $value
  51. * @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
  52. */
  53. public function setCode($value);
  54. /**
  55. * Get value for name
  56. * @return string
  57. */
  58. public function getName();
  59. /**
  60. * Set value for name
  61. * @param string $value
  62. * @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
  63. */
  64. public function setName($value);
  65. /**
  66. * Get value for dial_code
  67. * @return string
  68. */
  69. public function getDialCode();
  70. /**
  71. * Set value for dial_code
  72. * @param string $value
  73. * @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
  74. */
  75. public function setDialCode($value);
  76. /**
  77. * Retrieve existing extension attributes object or create a new one
  78. * @return \MSP\TwoFactorAuth\Api\Data\CountryExtensionInterface|null
  79. */
  80. public function getExtensionAttributes();
  81. /**
  82. * Set an extension attributes object
  83. * @param \MSP\TwoFactorAuth\Api\Data\CountryExtensionInterface $extensionAttributes
  84. * @return $this
  85. */
  86. public function setExtensionAttributes(
  87. \MSP\TwoFactorAuth\Api\Data\CountryExtensionInterface $extensionAttributes
  88. );
  89. }