<?php

namespace App\Services\Equipment;

use App\Entities\Equipment\SoftwareEntity;
use App\Models\Equipment\SoftwareModel;
use CodeIgniter\HTTP\IncomingRequest;

class SoftwareService extends EquipmentService
{
    protected ?IncomingRequest $request = null;
    public function __construct(?IncomingRequest $request = null)
    {
        parent::__construct($request);
        $this->addClassName('Software');
    }
    public function getModelClass(): SoftwareModel
    {
        return new SoftwareModel();
    }
    public function getEntityClass(): SoftwareEntity
    {
        return new SoftwareEntity();
    }
    public function getFields(): array
    {
        return [
            "type",
            "model",
            "status",
            "description",
        ];
    }
    public function getFilterFields(): array
    {
        return ['type', 'status'];
    }
    public function getBatchJobFields(): array
    {
        return ['type', 'status'];
    }
}
