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