dbms/app/Services/Device/PartService.php
2025-05-07 15:57:41 +09:00

29 lines
666 B
PHP

<?php
namespace App\Services\Device;
use App\Entities\Device\PartEntity;
use App\Models\Device\PartModel;
use CodeIgniter\HTTP\IncomingRequest;
class PartService extends DeviceService
{
protected ?IncomingRequest $request = null;
public function __construct(?IncomingRequest $request = null)
{
parent::__construct($request);
}
public function getClassName(): string
{
return parent::getClassName() . DIRECTORY_SEPARATOR . "Part";
}
public function getModelClass(): PartModel
{
return new PartModel();
}
public function getEntityClass(): PartEntity
{
return new PartEntity();
}
}