Total Complexity | 9 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Hook extends TypesHook |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @param $value |
||
19 | * @param $column MoneyModel |
||
20 | * @return mixed|void |
||
21 | */ |
||
22 | public function assignment($value, $column) |
||
27 | } |
||
28 | |||
29 | public function indexRender($row, $column) |
||
30 | { |
||
31 | $value = $row->{$column->getField()}; |
||
32 | $prefix = ($column->getPrefix())?:""; |
||
33 | return $prefix.number_format($value, $column->getPrecision()?:0, $column->getDecimal()?:".", $column->getThousands()?:","); |
||
34 | } |
||
35 | |||
36 | public function detailRender($row, $column) |
||
39 | } |
||
40 | } |