6 declare(strict_types=1);
12 use Magento\InventoryApi\Api\Data\StockSourceLinkExtensionInterface;
27 $this->
_init(StockSourceLinkResourceModel::class);
35 return $this->
getData(self::SOURCE_CODE);
51 return $this->
getData(self::STOCK_ID) ===
null ?
53 (int)$this->
getData(self::STOCK_ID);
61 $this->
setData(self::STOCK_ID, $stockId);
69 return $this->
getData(self::PRIORITY) ===
null ?
71 (int)$this->
getData(self::PRIORITY);
79 $this->
setData(self::PRIORITY, $priority);
89 $extensionAttributes = $this->extensionAttributesFactory->create(StockSourceLinkInterface::class);
setPriority(?int $priority)
_getExtensionAttributes()
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setExtensionAttributes(StockSourceLinkExtensionInterface $extensionAttributes)
setSourceCode(?string $sourceCode)
getData($key='', $index=null)
setData($key, $value=null)
setStockId(?int $stockId)