131 lines
2.4 KiB
PHP
131 lines
2.4 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Stemcell\Customer\Model;
|
|
|
|
use Magento\Framework\Model\AbstractModel;
|
|
use Stemcell\Customer\Api\Data\LabInterface;
|
|
|
|
class Lab extends AbstractModel implements LabInterface
|
|
{
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function _construct()
|
|
{
|
|
$this->_init(\Stemcell\Customer\Model\ResourceModel\Lab::class);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getLabCode()
|
|
{
|
|
return $this->getData(self::LAB_CODE);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function setLabCode($labCode)
|
|
{
|
|
return $this->setData(self::LAB_CODE, $labCode);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getBookingAccount()
|
|
{
|
|
return $this->getData(self::BOOKING_ACCOUNT);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function setBookingAccount($bookingAccount)
|
|
{
|
|
return $this->setData(self::BOOKING_ACCOUNT, $bookingAccount);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getPiSapId()
|
|
{
|
|
return $this->getData(self::PI_SAP_ID);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function setPiSapId($piSapId)
|
|
{
|
|
return $this->setData(self::PI_SAP_ID, $piSapId);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getVendorName()
|
|
{
|
|
return $this->getData(self::VENDOR_NAME);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function setVendorName($vendorName)
|
|
{
|
|
return $this->setData(self::VENDOR_NAME, $vendorName);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getIsActive()
|
|
{
|
|
return $this->getData(self::IS_ACTIVE);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function setIsActive($isActive)
|
|
{
|
|
return $this->setData(self::IS_ACTIVE, $isActive);
|
|
}
|
|
|
|
public function getLabId()
|
|
{
|
|
return $this->getData(self::LAB_ID);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function setLabId(int $labId)
|
|
{
|
|
return $this->setData(self::LAB_ID, $labId);
|
|
}
|
|
|
|
/**
|
|
* @param int $salespersonId
|
|
* @return LabInterface
|
|
*/
|
|
public function setSalespersonId(int $salespersonId): LabInterface
|
|
{
|
|
return $this->setData(self::SALESPERSON_ID, $salespersonId);
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getSalespersonId()
|
|
{
|
|
return $this->getData(self::SALESPERSON_ID);
|
|
}
|
|
}
|
|
|