Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function __get(string $field) |
||
32 | { |
||
33 | $this->isSettable($field); |
||
34 | |||
35 | if($this->full){ |
||
36 | switch($this->data[$field]['type']){ |
||
37 | case 'date': $this->data[$field]['value'] = (date_format( date_create_from_format('Y-m-d' , $this->data[$field]['value'] ) , DATAMANAGER_CONFIG['dateformat'])); |
||
38 | } |
||
39 | } |
||
40 | |||
41 | return $this->data[$field]['value']; |
||
42 | } |
||
43 | } |