Схема
public mixed
format (
$value, $weight_class_id, $decimal_point = '.', $thousand_point = ',' )
Аргументы
| Аргумент |
Возможный тип |
Описание |
| $value |
— |
— |
| $weight_class_id |
— |
— |
| $decimal_point = '.' |
— |
— |
| $thousand_point = ' |
— |
— |
| ' |
— |
— |
Описание
Метод пока еще не документирован.
Исходный код
if (isset($this->weights[$weight_class_id])) {
return number_format($value, 2, $decimal_point, $thousand_point) . $this->weights[$weight_class_id]['unit'];
} else {
return number_format($value, 2, $decimal_point, $thousand_point);
}