Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function getValueAttribute() |
||
12 | { |
||
13 | if (!is_null($this->value_int)) { |
||
14 | return intval($this->value_int); |
||
15 | } |
||
16 | |||
17 | if (!is_null($this->value_bool)) { |
||
18 | return boolval($this->value_bool); |
||
19 | } |
||
20 | |||
21 | if (!is_null($this->value_str)) { |
||
22 | return $this->value_str; |
||
23 | } |
||
24 | |||
25 | return null; |
||
26 | } |
||
50 |