Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CountryInformation.php
Go to the documentation of this file.
1 <?php
8 
16 {
17  const KEY_COUNTRY_ID = 'country_id';
18  const KEY_COUNTRY_TWO_LETTER_ABBREVIATION = 'country_abbreviation2';
19  const KEY_COUNTRY_THREE_LETTER_ABBREVIATION = 'country_abbreviation3';
20  const KEY_COUNTRY_FULL_NAME_LOCALE = 'country_full_name_locale';
21  const KEY_COUNTRY_FULL_NAME_ENGLISH = 'country_full_name_english';
22  const KEY_COUNTRY_AVAILABLE_REGIONS = 'country_available_regions';
23 
27  public function getId()
28  {
29  return $this->_get(self::KEY_COUNTRY_ID);
30  }
31 
35  public function setId($id)
36  {
37  return $this->setData(self::KEY_COUNTRY_ID, $id);
38  }
39 
43  public function getTwoLetterAbbreviation()
44  {
45  return $this->_get(self::KEY_COUNTRY_TWO_LETTER_ABBREVIATION);
46  }
47 
51  public function setTwoLetterAbbreviation($abbreviation)
52  {
53  return $this->setData(self::KEY_COUNTRY_TWO_LETTER_ABBREVIATION, $abbreviation);
54  }
55 
59  public function getThreeLetterAbbreviation()
60  {
61  return $this->_get(self::KEY_COUNTRY_THREE_LETTER_ABBREVIATION);
62  }
63 
67  public function setThreeLetterAbbreviation($abbreviation)
68  {
69  return $this->setData(self::KEY_COUNTRY_THREE_LETTER_ABBREVIATION, $abbreviation);
70  }
71 
75  public function getFullNameLocale()
76  {
77  return $this->_get(self::KEY_COUNTRY_FULL_NAME_LOCALE);
78  }
79 
83  public function setFullNameLocale($fullNameLocale)
84  {
85  return $this->setData(self::KEY_COUNTRY_FULL_NAME_LOCALE, $fullNameLocale);
86  }
87 
91  public function getFullNameEnglish()
92  {
93  return $this->_get(self::KEY_COUNTRY_FULL_NAME_ENGLISH);
94  }
95 
99  public function setFullNameEnglish($fullNameEnglish)
100  {
101  return $this->setData(self::KEY_COUNTRY_FULL_NAME_ENGLISH, $fullNameEnglish);
102  }
103 
107  public function getAvailableRegions()
108  {
109  return $this->_get(self::KEY_COUNTRY_AVAILABLE_REGIONS);
110  }
111 
115  public function setAvailableRegions($availableRegions)
116  {
117  return $this->setData(self::KEY_COUNTRY_AVAILABLE_REGIONS, $availableRegions);
118  }
119 
123  public function getExtensionAttributes()
124  {
125  return $this->_getExtensionAttributes();
126  }
127 
131  public function setExtensionAttributes(
132  \Magento\Directory\Api\Data\CountryInformationExtensionInterface $extensionAttributes
133  ) {
134  return $this->_setExtensionAttributes($extensionAttributes);
135  }
136 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$id
Definition: fieldset.phtml:14
$extensionAttributes
Definition: payment.php:22
setExtensionAttributes(\Magento\Directory\Api\Data\CountryInformationExtensionInterface $extensionAttributes)