Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RegionInformation.php
Go to the documentation of this file.
1 <?php
8 
16 {
17  const KEY_REGION_ID = 'region_id';
18  const KEY_REGION_CODE = 'region_code';
19  const KEY_REGION_NAME = 'region_name';
20 
24  public function getId()
25  {
26  return $this->_get(self::KEY_REGION_ID);
27  }
28 
32  public function setId($regionId)
33  {
34  $this->setData(self::KEY_REGION_ID, $regionId);
35  }
36 
40  public function getCode()
41  {
42  return $this->_get(self::KEY_REGION_CODE);
43  }
44 
48  public function setCode($regionCode)
49  {
50  $this->setData(self::KEY_REGION_CODE, $regionCode);
51  }
52 
56  public function getName()
57  {
58  return $this->_get(self::KEY_REGION_NAME);
59  }
60 
64  public function setName($regionName)
65  {
66  $this->setData(self::KEY_REGION_NAME, $regionName);
67  }
68 
72  public function getExtensionAttributes()
73  {
74  return $this->_getExtensionAttributes();
75  }
76 
80  public function setExtensionAttributes(
81  \Magento\Directory\Api\Data\RegionInformationExtensionInterface $extensionAttributes
82  ) {
83  return $this->_setExtensionAttributes($extensionAttributes);
84  }
85 }
setExtensionAttributes(\Magento\Directory\Api\Data\RegionInformationExtensionInterface $extensionAttributes)
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22