36 lines
897 B
PHP
36 lines
897 B
PHP
<?php
|
|
|
|
namespace App\Services\Equipment\Link;
|
|
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
|
|
use App\Entities\Equipment\Link\SoftwareEntity;
|
|
use App\Models\Equipment\Link\SoftwareModel;
|
|
use App\Services\Equipment\SoftwareService as AdapterService;
|
|
|
|
class SoftwareService extends LinkService
|
|
{
|
|
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();
|
|
}
|
|
protected function getAdapterService(): AdapterService
|
|
{
|
|
return new AdapterService();
|
|
}
|
|
protected function getAdapterField(): string
|
|
{
|
|
return "softwareinfo_uid";
|
|
}
|
|
}
|