1 | <?php |
||
20 | class JsonContent extends Content implements ContentInterface |
||
21 | { |
||
22 | /** |
||
23 | * Return the content as an array |
||
24 | * |
||
25 | * @return array |
||
26 | * @throws \NeedleProject\FileIo\Exception\ContentException |
||
27 | */ |
||
28 | 3 | public function getArray() |
|
32 | |||
33 | /** |
||
34 | * @return \stdClass |
||
35 | * @throws \NeedleProject\FileIo\Exception\ContentException |
||
36 | */ |
||
37 | 3 | public function getObject() |
|
41 | |||
42 | /** |
||
43 | * @param bool $asArray |
||
44 | * @return mixed |
||
45 | * @throws \NeedleProject\FileIo\Exception\ContentException |
||
46 | */ |
||
47 | 5 | private function decodeJson($asArray = false) |
|
57 | } |
||
58 |