dbmsv4/app/Helpers/Customer/PointHelper.php
2025-11-19 11:16:04 +09:00

27 lines
724 B
PHP

<?php
namespace App\Helpers\Customer;
class PointHelper extends CustomerHelper
{
public function __construct()
{
parent::__construct();
}
public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null
{
switch ($field) {
case 'cnt':
$value = number_format($value) . "";
break;
default:
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
if (is_array($value)) {
throw new \Exception(__METHOD__ . "에서 오류: {$field}의 값이 Array형태입니다");
}
return $value;
}
}