ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,83 @@
<?php
/**
* Copyright © All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Lts\Inventory\Model;
use Lts\Inventory\Api\Data\SourceCustomerInterface;
use Magento\Framework\Model\AbstractModel;
use Magento\InventoryApi\Api\Data\SourceInterface;
class SourceCustomer extends AbstractModel implements SourceCustomerInterface
{
/**
* @inheritDoc
*/
public function _construct()
{
$this->_init(\Lts\Inventory\Model\ResourceModel\SourceCustomer::class);
}
/**
* @inheritDoc
*/
public function getEntityId()
{
return $this->getData(self::ENTITY_ID);
}
/**
* @inheritDoc
*/
public function getSourceCode()
{
return $this->getData(self::SOURCE_CODE);
}
/**
* @inheritDoc
*/
public function setSourceCode(string $sourceId)
{
return $this->setData(self::SOURCE_CODE, $sourceId);
}
/**
* @inheritDoc
*/
public function getCustomerId()
{
return $this->getData(self::CUSTOMER_ID);
}
/**
* @inheritDoc
*/
public function setCustomerId(string $customerId)
{
return $this->setData(self::CUSTOMER_ID, $customerId);
}
/**
* @return SourceInterface
*/
public function getSource()
{
return $this->getData(self::INVENTORY_SOURCE);
}
/**
* @param SourceInterface $source
* @return $this
*/
public function setSource(SourceInterface $source)
{
return $this->setData(self::INVENTORY_SOURCE, $source);
}
}