6 declare(strict_types=1);
12 use Magento\InventoryApi\Api\Data\SourceExtensionInterface;
27 $this->
_init(SourceResourceModel::class);
35 return $this->
getData(self::SOURCE_CODE);
51 return $this->
getData(self::NAME);
67 return $this->
getData(self::EMAIL);
83 return $this->
getData(self::CONTACT_NAME);
91 $this->
setData(self::CONTACT_NAME, $contactName);
99 return $this->
getData(self::ENABLED) ===
null ?
101 (bool)$this->
getData(self::ENABLED);
109 $this->
setData(self::ENABLED, $enabled);
117 return $this->
getData(self::DESCRIPTION);
133 return $this->
getData(self::LATITUDE) ===
null ?
135 (float)$this->
getData(self::LATITUDE);
143 $this->
setData(self::LATITUDE, $latitude);
151 return $this->
getData(self::LONGITUDE) ===
null ?
153 (float)$this->
getData(self::LONGITUDE);
161 $this->
setData(self::LONGITUDE, $longitude);
169 return $this->
getData(self::COUNTRY_ID);
177 $this->
setData(self::COUNTRY_ID, $countryId);
185 return $this->
getData(self::REGION_ID) ===
null ?
187 (int)$this->
getData(self::REGION_ID);
195 $this->
setData(self::REGION_ID, $regionId);
203 return $this->
getData(self::REGION);
211 $this->
setData(self::REGION, $region);
219 return $this->
getData(self::CITY);
227 $this->
setData(self::CITY, $city);
235 return $this->
getData(self::STREET);
243 $this->
setData(self::STREET, $street);
251 return $this->
getData(self::POSTCODE);
259 $this->
setData(self::POSTCODE, $postcode);
267 return $this->
getData(self::PHONE);
275 $this->
setData(self::PHONE, $phone);
283 return $this->
getData(self::FAX);
289 public function setFax(?
string $fax): void
291 $this->
setData(self::FAX, $fax);
307 $this->
setData(self::USE_DEFAULT_CARRIER_CONFIG, $useDefaultCarrierConfig);
315 return $this->
getData(self::CARRIER_LINKS);
323 $this->
setData(self::CARRIER_LINKS, $carrierLinks);
isUseDefaultCarrierConfig()
setStreet(?string $street)
setDescription(?string $description)
setCountryId(?string $countryId)
_getExtensionAttributes()
setLongitude(?float $longitude)
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setLatitude(?float $latitude)
setPostcode(?string $postcode)
setRegionId(?int $regionId)
setSourceCode(?string $sourceCode)
setCarrierLinks(?array $carrierLinks)
setUseDefaultCarrierConfig(?bool $useDefaultCarrierConfig)
setExtensionAttributes(SourceExtensionInterface $extensionAttributes)
setRegion(?string $region)
setEnabled(?bool $enabled)
getData($key='', $index=null)
setData($key, $value=null)
setContactName(?string $contactName)
if(!isset($_GET['name'])) $name