1 | <?php |
||
33 | class WriterList implements WriterInterface, \Iterator |
||
|
|||
34 | { |
||
35 | use IteratorTrait; |
||
36 | |||
37 | /** |
||
38 | * @var WriterInterface[] |
||
39 | */ |
||
40 | protected $writer = []; |
||
41 | |||
42 | /** |
||
43 | * Get the array the iterator shall iterate over. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function & getIterableElement() |
||
51 | |||
52 | /** |
||
53 | * @param Cfp $cfp |
||
54 | * |
||
55 | * @return String |
||
56 | */ |
||
57 | public function write(Cfp $cfp) |
||
63 | |||
64 | /** |
||
65 | * Add a writer |
||
66 | * |
||
67 | * @param WriterInterface $writer |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | public function addWriter(Writer $writer) |
||
75 | } |