45 lines
1002 B
PHP
45 lines
1002 B
PHP
<?php
|
|
|
|
namespace App\Services\Equipment\Link;
|
|
|
|
use App\Entities\Equipment\Link\CpuEntity;
|
|
use App\Models\Equipment\Link\CpuModel;
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
|
|
class CpuService extends LinkService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
}
|
|
public function getClassName(): string
|
|
{
|
|
return parent::getClassName() . DIRECTORY_SEPARATOR . "Cpu";
|
|
}
|
|
public function getModelClass(): CpuModel
|
|
{
|
|
return new CpuModel();
|
|
}
|
|
public function getEntityClass(): CpuEntity
|
|
{
|
|
return new CpuEntity();
|
|
}
|
|
public function getFields(): array
|
|
{
|
|
return [
|
|
"serverinfo_uid",
|
|
"cpuinfo_uid",
|
|
];
|
|
}
|
|
|
|
public function getFilterFields(): array
|
|
{
|
|
return ["serverinfo_uid", "cpuinfo_uid"];
|
|
}
|
|
public function getBatchJobFields(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|