Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function getTypeAttribute() |
||
34 | { |
||
35 | if (!is_null($this->value_int)) { |
||
36 | return $this->type = "value_int"; |
||
|
|||
37 | } |
||
38 | |||
39 | if (!is_null($this->value_bool)) { |
||
40 | return $this->type = "value_bool"; |
||
41 | } |
||
42 | |||
43 | if (!is_null($this->value_str)) { |
||
44 | return $this->type = "value_str"; |
||
45 | } |
||
46 | |||
47 | return null; |
||
48 | } |
||
50 |