CountryInformation.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Directory\Model\Data;
  8. /**
  9. * Class Country Information
  10. *
  11. * @codeCoverageIgnore
  12. */
  13. class CountryInformation extends \Magento\Framework\Api\AbstractExtensibleObject implements
  14. \Magento\Directory\Api\Data\CountryInformationInterface
  15. {
  16. const KEY_COUNTRY_ID = 'country_id';
  17. const KEY_COUNTRY_TWO_LETTER_ABBREVIATION = 'country_abbreviation2';
  18. const KEY_COUNTRY_THREE_LETTER_ABBREVIATION = 'country_abbreviation3';
  19. const KEY_COUNTRY_FULL_NAME_LOCALE = 'country_full_name_locale';
  20. const KEY_COUNTRY_FULL_NAME_ENGLISH = 'country_full_name_english';
  21. const KEY_COUNTRY_AVAILABLE_REGIONS = 'country_available_regions';
  22. /**
  23. * @inheritDoc
  24. */
  25. public function getId()
  26. {
  27. return $this->_get(self::KEY_COUNTRY_ID);
  28. }
  29. /**
  30. * @inheritDoc
  31. */
  32. public function setId($id)
  33. {
  34. return $this->setData(self::KEY_COUNTRY_ID, $id);
  35. }
  36. /**
  37. * @inheritDoc
  38. */
  39. public function getTwoLetterAbbreviation()
  40. {
  41. return $this->_get(self::KEY_COUNTRY_TWO_LETTER_ABBREVIATION);
  42. }
  43. /**
  44. * @inheritDoc
  45. */
  46. public function setTwoLetterAbbreviation($abbreviation)
  47. {
  48. return $this->setData(self::KEY_COUNTRY_TWO_LETTER_ABBREVIATION, $abbreviation);
  49. }
  50. /**
  51. * @inheritDoc
  52. */
  53. public function getThreeLetterAbbreviation()
  54. {
  55. return $this->_get(self::KEY_COUNTRY_THREE_LETTER_ABBREVIATION);
  56. }
  57. /**
  58. * @inheritDoc
  59. */
  60. public function setThreeLetterAbbreviation($abbreviation)
  61. {
  62. return $this->setData(self::KEY_COUNTRY_THREE_LETTER_ABBREVIATION, $abbreviation);
  63. }
  64. /**
  65. * @inheritDoc
  66. */
  67. public function getFullNameLocale()
  68. {
  69. return $this->_get(self::KEY_COUNTRY_FULL_NAME_LOCALE);
  70. }
  71. /**
  72. * @inheritDoc
  73. */
  74. public function setFullNameLocale($fullNameLocale)
  75. {
  76. return $this->setData(self::KEY_COUNTRY_FULL_NAME_LOCALE, $fullNameLocale);
  77. }
  78. /**
  79. * @inheritDoc
  80. */
  81. public function getFullNameEnglish()
  82. {
  83. return $this->_get(self::KEY_COUNTRY_FULL_NAME_ENGLISH);
  84. }
  85. /**
  86. * @inheritDoc
  87. */
  88. public function setFullNameEnglish($fullNameEnglish)
  89. {
  90. return $this->setData(self::KEY_COUNTRY_FULL_NAME_ENGLISH, $fullNameEnglish);
  91. }
  92. /**
  93. * @inheritDoc
  94. */
  95. public function getAvailableRegions()
  96. {
  97. return $this->_get(self::KEY_COUNTRY_AVAILABLE_REGIONS);
  98. }
  99. /**
  100. * @inheritDoc
  101. */
  102. public function setAvailableRegions($availableRegions)
  103. {
  104. return $this->setData(self::KEY_COUNTRY_AVAILABLE_REGIONS, $availableRegions);
  105. }
  106. /**
  107. * @inheritDoc
  108. */
  109. public function getExtensionAttributes()
  110. {
  111. return $this->_getExtensionAttributes();
  112. }
  113. /**
  114. * @inheritDoc
  115. */
  116. public function setExtensionAttributes(
  117. \Magento\Directory\Api\Data\CountryInformationExtensionInterface $extensionAttributes
  118. ) {
  119. return $this->_setExtensionAttributes($extensionAttributes);
  120. }
  121. }