29 lines
666 B
PHP
29 lines
666 B
PHP
<?php
|
|
|
|
namespace App\Services\Device;
|
|
|
|
use App\Entities\Device\PartEntity;
|
|
use App\Models\Device\PartModel;
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
|
|
class PartService extends DeviceService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
}
|
|
public function getClassName(): string
|
|
{
|
|
return parent::getClassName() . DIRECTORY_SEPARATOR . "Part";
|
|
}
|
|
public function getModelClass(): PartModel
|
|
{
|
|
return new PartModel();
|
|
}
|
|
public function getEntityClass(): PartEntity
|
|
{
|
|
return new PartEntity();
|
|
}
|
|
}
|