1 | <?php |
||
29 | class CollectionWriter |
||
30 | { |
||
31 | /** |
||
32 | * @var \Pvra\Result\Collection |
||
33 | */ |
||
34 | private $result; |
||
35 | |||
36 | /** |
||
37 | * @param \Pvra\Result\Collection $result |
||
38 | */ |
||
39 | 24 | public function __construct(ResultCollection $result) |
|
43 | |||
44 | /** |
||
45 | * @param $fileName |
||
46 | * @param \Pvra\Result\ResultFormatter\ResultFormatter $formatter |
||
47 | * @param bool $overrideExistingFile |
||
48 | * @throws \Pvra\Result\Exceptions\ResultFileWriterException |
||
49 | */ |
||
50 | 14 | public function write($fileName, ResultFormatter $formatter, $overrideExistingFile = false) |
|
58 | |||
59 | /** |
||
60 | * @param $stream |
||
61 | * @param \Pvra\Result\ResultFormatter\ResultFormatter $formatter |
||
62 | */ |
||
63 | 6 | public function writeToStream($stream, ResultFormatter $formatter) |
|
72 | } |
||
73 |