84 lines
1.6 KiB
PHP
84 lines
1.6 KiB
PHP
<?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);
|
|
}
|
|
}
|
|
|