| Total Complexity | 10 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class JsonLoader extends Loader |
||
| 13 | { |
||
| 14 | public function loadString(string $string, Translations $translations = null): Translations |
||
| 15 | { |
||
| 16 | $array = json_decode($string, true); |
||
| 17 | |||
| 18 | return $this->loadArray($array, $translations); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function loadArray(array $array, Translations $translations = null): Translations |
||
| 60 | } |
||
| 61 | } |
||
| 62 |