1 | <?php |
||
9 | class JsonLinesReader extends AbstractReader |
||
10 | { |
||
11 | /** |
||
12 | * @var \SplFileObject |
||
13 | */ |
||
14 | protected $fileObject; |
||
15 | |||
16 | /** |
||
17 | * Serializes a read item into a ParameterBag. |
||
18 | * |
||
19 | * @param string $data |
||
20 | * |
||
21 | * @return ParameterBag |
||
22 | * |
||
23 | * @throws ReadException |
||
24 | */ |
||
25 | protected function serialize($data) |
||
39 | |||
40 | /** |
||
41 | * Creates a reader for a resource. |
||
42 | * |
||
43 | * @param ResourceInterface $resource |
||
44 | */ |
||
45 | protected function createReader(ResourceInterface $resource) |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | protected function doKey() |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | protected function doCurrent() |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | protected function doNext() |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | protected function doValid() |
||
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | protected function doRewind() |
||
91 | } |
||
92 |