<?php

namespace App\Services\Equipment\Part;

use App\Entities\Equipment\Part\CpuEntity;
use App\Models\Equipment\Part\CpuModel;
use CodeIgniter\HTTP\IncomingRequest;

class CpuService extends PartService
{
    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();
    }
    final public function getFormFields(): array
    {
        return [
            "model",
            "status",
        ];
    }
    final public function getFilterFields(): array
    {
        return ['status'];
    }
    final public function getBatchJobFields(): array
    {
        return ['status'];
    }
    public function getIndexFields(): array
    {
        return ['model', 'status'];
    }
}
