1 | <?php |
||
8 | class ReportWriteManager |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var ReportWriterInterface[] |
||
13 | */ |
||
14 | private $reportWriters; |
||
15 | |||
16 | public function __construct(array $reportWriters = []) |
||
20 | |||
21 | /** |
||
22 | * @return $this |
||
23 | */ |
||
24 | public function addReportWriter($format, ReportWriterInterface $reportWriter) |
||
33 | |||
34 | /** |
||
35 | * @return ReportWriterInterface |
||
36 | */ |
||
37 | private function getReportWriter($format) |
||
48 | |||
49 | /** |
||
50 | * @return mixed |
||
51 | */ |
||
52 | public function write($format, array $data, ReportConfig $reportConfig) |
||
58 | |||
59 | } |
||
60 |