dbms/app/Services/Device/ServerService.php
2025-05-12 11:09:50 +09:00

30 lines
804 B
PHP

<?php
namespace App\Services\Device;
use App\Entities\Device\ServerEntity;
use App\Models\Device\ServerModel;
use CodeIgniter\HTTP\IncomingRequest;
use App\Services\Device\DeviceService; // Ensure this path is correct and the class exists or create the class if missing
class ServerService extends DeviceService
{
protected ?IncomingRequest $request = null;
public function __construct(?IncomingRequest $request = null)
{
parent::__construct($request);
}
public function getClassName(): string
{
return parent::getClassName() . DIRECTORY_SEPARATOR . "Server";
}
public function getModelClass(): ServerModel
{
return new ServerModel();
}
public function getEntityClass(): ServerEntity
{
return new ServerEntity();
}
}