25 lines
663 B
PHP
25 lines
663 B
PHP
<?php
|
|
|
|
namespace App\Entities\Customer;
|
|
|
|
use App\Models\Customer\ServiceModel;
|
|
|
|
class ServiceEntity extends CustomerEntity
|
|
{
|
|
const PK = ServiceModel::PK;
|
|
const TITLE = ServiceModel::TITLE;
|
|
final public function getOwnertUID(): int
|
|
{
|
|
return intval($this->attributes['ownerinfo_uid']);
|
|
}
|
|
public function getItemEntities(string $type): array
|
|
{
|
|
return $this->attributes[$type] ?? [];
|
|
}
|
|
public function setItemEntities(string $type, array $itemEntities): void
|
|
{
|
|
$this->attributes[$type] = $itemEntities;
|
|
// $this->attributes[$type] = array_unique($this->attributes[$type], SORT_REGULAR);
|
|
}
|
|
}
|