Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 2 | public static function fromArray($values) |
|
17 | { |
||
18 | 2 | $item = new self; |
|
19 | |||
20 | 2 | $item->namespace = $values['namespace']; |
|
21 | 2 | $item->locale = $values['locale']; |
|
22 | 2 | $item->group = $values['group']; |
|
23 | 2 | $item->key = $values['key']; |
|
24 | 2 | $item->full_key = $values['full_key']; |
|
25 | 2 | $item->value = $values['value']; |
|
26 | 2 | $item->source_file = $values['source_file']; |
|
27 | 2 | $item->status = $values['status']; |
|
28 | |||
29 | 2 | return $item; |
|
30 | } |
||
31 | } |
||
32 |