dbms/app/Entities/Customer/ServiceEntity.php
2025-06-02 12:31:22 +09:00

25 lines
654 B
PHP

<?php
namespace App\Entities\Customer;
use App\Models\Customer\ServiceModel;
class ServiceEntity extends CustomerEntity
{
const PK = ServiceModel::PK;
const TITLE = ServiceModel::TITLE;
public function getAdapterEntities(string $type): array
{
return $this->attributes[$type] ?? [];
}
public function setAdapterEntities(string $type, array $partEntities): void
{
if (!isset($this->attributes[$type])) {
$this->attributes[$type] = [];
}
$this->attributes[$type] = $partEntities;
// $this->attributes[$type] = array_unique($this->attributes[$type], SORT_REGULAR);
}
}