| 1 | <?php |
||
| 22 | class WorkflowConcatenator implements ReaderInterface, WriterInterface |
||
| 23 | { |
||
| 24 | /** @var mixed[] */ |
||
| 25 | private $data = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return \ArrayIterator |
||
| 29 | */ |
||
| 30 | 1 | public function getIterator() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return int |
||
| 37 | */ |
||
| 38 | 1 | public function count() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Write the given item. |
||
| 45 | * |
||
| 46 | * @param mixed $item |
||
| 47 | */ |
||
| 48 | 1 | public function writeItem($item) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Prepare the writer. |
||
| 55 | */ |
||
| 56 | 1 | public function prepare() |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Finish the writer. |
||
| 62 | */ |
||
| 63 | 1 | public function finish() |
|
| 66 | } |
||
| 67 |