| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ChallengeParser |
||
| 17 | { |
||
| 18 | 6 | public static function parseJson(string $json, string $cpf = null): ChallengeInterface |
|
| 19 | { |
||
| 20 | 6 | $decoded = json_decode($json, true); |
|
| 21 | |||
| 22 | 6 | return self::parseArray($decoded, $cpf); |
|
| 23 | } |
||
| 24 | |||
| 25 | 7 | public static function parseArray(array $serialized, string $cpf = null): ChallengeInterface |
|
| 40 | } |
||
| 41 | } |
||
| 42 |