| 1 | <?php |
||
| 13 | class WriterFactory |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var WriterInterface[] |
||
| 17 | */ |
||
| 18 | protected $writers = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $writerClass |
||
| 22 | * |
||
| 23 | * @return WriterInterface |
||
| 24 | * @throws InvalidWriterException |
||
| 25 | */ |
||
| 26 | 3 | public function createWriter($writerClass) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $writerClass |
||
| 43 | */ |
||
| 44 | protected function addWriter($writerClass) |
||
| 48 | } |
||
| 49 |