1 | <?php |
||
10 | class JsonLinesReader extends AbstractReader |
||
11 | { |
||
12 | /** |
||
13 | * @var \Iterator |
||
14 | */ |
||
15 | protected $fileObject; |
||
16 | |||
17 | /** |
||
18 | * Serializes a read item into a ParameterBag. |
||
19 | * |
||
20 | * @param string $data |
||
21 | * |
||
22 | * @return ParameterBag |
||
23 | * |
||
24 | * @throws ReadException |
||
25 | */ |
||
26 | 6 | protected function serialize($data) |
|
40 | |||
41 | /** |
||
42 | * Creates a reader for a resource. |
||
43 | * |
||
44 | * @param ResourceInterface $resource |
||
45 | */ |
||
46 | 6 | protected function createReader(ResourceInterface $resource) |
|
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | protected function doKey() |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | 6 | protected function doCurrent() |
|
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | 6 | protected function doNext() |
|
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | 6 | protected function doValid() |
|
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | */ |
||
94 | protected function doRewind() |
||
98 | } |
||
99 |