Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public function toArray() |
||
46 | { |
||
47 | $model_value = $this->getModelValue(); |
||
48 | if (is_callable($modifier = $this->getModifier())) { |
||
49 | $model_value = $modifier($model_value, $this->getModel()); |
||
50 | } |
||
51 | |||
52 | return parent::toArray() + [ |
||
53 | 'value' => $model_value, |
||
54 | 'small' => $this->getModelSmallValue(), |
||
55 | ]; |
||
58 |