dbms_primeidc/extdbms/lib/Services/VPCService.php
2025-04-03 11:29:24 +09:00

36 lines
695 B
PHP

<?php
namespace lib\Services;
use lib\Entities\VPCEntity as Entity;
use lib\Models\VPCModel as Model;
class VPCService extends CommonService
{
public function __construct()
{
parent::__construct();
}
final public function getClassName(): string
{
return "VPC";
}
final public function getClassPath(): string
{
return $this->getClassName();
}
public function getModelClass(): string
{
return Model::class;
}
public function getEntityClass(): string
{
return Entity::class;
}
public function getCountByServiceCode(string $service_code): int
{
$this->getModel()->where("service_code", $service_code);
return $this->getCount();
}
}