47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Customer;
|
|
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
|
|
use App\Entities\Customer\ServicePartEntity;
|
|
use App\Models\Customer\ServicePartModel;
|
|
|
|
class ServicePartService extends CustomerService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
}
|
|
public function getClassName(): string
|
|
{
|
|
return parent::getClassName() . DIRECTORY_SEPARATOR . "ServicePart";
|
|
}
|
|
public function getModelClass(): ServicePartModel
|
|
{
|
|
return new ServicePartModel();
|
|
}
|
|
public function getEntityClass(): ServicePartEntity
|
|
{
|
|
return new ServicePartEntity();
|
|
}
|
|
public function getFields(): array
|
|
{
|
|
return [
|
|
"serviceinfo_uid",
|
|
"partinfo_uid",
|
|
"billing_type",
|
|
"amount",
|
|
];
|
|
}
|
|
public function getFilterFields(): array
|
|
{
|
|
return ["serviceinfo_uid", "type", "partinfo_uid"];
|
|
}
|
|
public function getBatchJobFields(): array
|
|
{
|
|
return ["type", "partinfo_uid"];
|
|
}
|
|
}
|