1 | <?php declare(strict_types = 1); |
||
14 | class JsonParser implements Parser |
||
15 | { |
||
16 | /** |
||
17 | * @param string $string |
||
18 | * |
||
19 | * @return mixed |
||
20 | * @throws ParseException |
||
21 | */ |
||
22 | public function parse(string $string) |
||
32 | |||
33 | /** |
||
34 | * @param string $contentType |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function canParse(string $contentType): bool |
||
42 | } |
||
43 |