| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 120 | 1 | public static function newInstanceFromData(array $data): self |
|
| 121 | { |
||
| 122 | 1 | return new self( |
|
| 123 | [ |
||
| 124 | 1 | 'cs' => $data['name_cz'], |
|
| 125 | 1 | 'en' => $data['name_en'], |
|
| 126 | ], |
||
| 127 | 1 | $data['iso_code'], |
|
| 128 | 1 | $data['currency'], |
|
| 129 | 1 | $data['phone_prefix'], |
|
| 130 | 1 | $data['continent'] |
|
| 131 | ); |
||
| 132 | } |
||
| 133 | } |
||
| 134 |