1 | <?php |
||
7 | class JsonBody extends Body |
||
8 | { |
||
9 | /** |
||
10 | * @var JsonObject |
||
11 | */ |
||
12 | private $json = []; |
||
13 | |||
14 | /** |
||
15 | * @param string $jsonString |
||
16 | */ |
||
17 | public function __construct($jsonString) |
||
21 | |||
22 | /** |
||
23 | * @return bool |
||
24 | */ |
||
25 | public function isJson(): bool |
||
29 | |||
30 | /** |
||
31 | * @param string $selector |
||
32 | * @return \Kartenmacherei\RestFramework\JsonArray|JsonObject |
||
33 | */ |
||
34 | public function query(string $selector) |
||
38 | |||
39 | /** |
||
40 | * @return JsonObject |
||
41 | */ |
||
42 | public function getJson(): JsonObject |
||
46 | |||
47 | /** |
||
48 | * @param string $jsonString |
||
49 | * @return JsonObject |
||
50 | * @throws EnsureException |
||
51 | */ |
||
52 | private function decode(string $jsonString): JsonObject |
||
60 | |||
61 | } |
||
62 |