36 lines
852 B
PHP
36 lines
852 B
PHP
<?php
|
|
|
|
namespace App\Services\Equipment\Link;
|
|
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
|
|
use App\Entities\Equipment\Link\CpuEntity;
|
|
use App\Models\Equipment\Link\CpuModel;
|
|
use App\Services\Equipment\Part\CpuService as AdapterService;
|
|
|
|
class CpuService extends LinkService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
$this->addClassName('Cpu');
|
|
}
|
|
public function getModelClass(): CpuModel
|
|
{
|
|
return new CpuModel;
|
|
}
|
|
public function getEntityClass(): CpuEntity
|
|
{
|
|
return new CpuEntity();
|
|
}
|
|
protected function getAdapterService(): AdapterService
|
|
{
|
|
return new AdapterService();
|
|
}
|
|
protected function getAdapterField(): string
|
|
{
|
|
return "cpuinfo_uid";
|
|
}
|
|
}
|