| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public static function createFromJson(string $json) : GetFareFamilyListParameters |
||
| 36 | { |
||
| 37 | $parameters = json_decode($json, (bool) JSON_OBJECT_AS_ARRAY); |
||
| 38 | if (json_last_error() !== JSON_ERROR_NONE) { |
||
| 39 | throw new InvalidArgumentException( |
||
| 40 | 'GetFareFamilyListParametersFactory Error: ' . json_last_error_msg() |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | return self::createFromArray($parameters); |
||
| 44 | } |
||
| 46 |