46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?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);
|
|
}
|
|
public function getClassName(): string
|
|
{
|
|
return parent::getClassName() . DIRECTORY_SEPARATOR . "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'];
|
|
}
|
|
}
|