28 lines
733 B
PHP
28 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Entities\Customer;
|
|
|
|
use App\Entities\Customer\ServiceEntity;
|
|
use App\Models\Customer\ServiceHistoryModel;
|
|
|
|
class ServiceHistoryEntity extends CustomerEntity
|
|
{
|
|
const PK = ServiceHistoryModel::PK;
|
|
const TITLE = ServiceHistoryModel::TITLE;
|
|
private ?ServiceEntity $_serviceEntity = null;
|
|
//서비스정보객체
|
|
public function getServiceUid(): int
|
|
{
|
|
return intval($this->attributes['serviceinfo_uid']);
|
|
}
|
|
final public function getService(): ServiceEntity|null
|
|
{
|
|
return $this->_serviceEntity;
|
|
}
|
|
final public function setService(ServiceEntity $serviceEntity): void
|
|
{
|
|
$this->_serviceEntity = $serviceEntity;
|
|
}
|
|
//타 객체정의 부분
|
|
}
|