1 | <?php |
||
19 | class ArrayWriter implements WriterInterface |
||
20 | { |
||
21 | /** @var array */ |
||
22 | private $data = []; |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
26 | */ |
||
27 | 1 | public function getData() |
|
31 | |||
32 | /** |
||
33 | * Writes the given item to the array. |
||
34 | * |
||
35 | * @param $item |
||
36 | */ |
||
37 | 1 | public function writeItem($item) |
|
41 | |||
42 | 1 | public function prepare() |
|
45 | |||
46 | 1 | public function finish() |
|
49 | } |
||
50 |