1 | <?php |
||
18 | final class Merger |
||
19 | { |
||
20 | /** |
||
21 | * @var SourceInterface[] List of pdf sources to merge |
||
22 | */ |
||
23 | private $sources = []; |
||
24 | |||
25 | /** |
||
26 | * @var DriverInterface |
||
27 | */ |
||
28 | private $driver; |
||
29 | |||
30 | public function __construct(DriverInterface $driver = null) |
||
34 | |||
35 | /** |
||
36 | * Add raw PDF from string |
||
37 | */ |
||
38 | public function addRaw(string $content, PagesInterface $pages = null): void |
||
42 | |||
43 | /** |
||
44 | * Add PDF from file |
||
45 | */ |
||
46 | public function addFile(string $filename, PagesInterface $pages = null): void |
||
50 | |||
51 | /** |
||
52 | * Add files using iterator |
||
53 | * |
||
54 | * @param iterable<string> $iterator Set of filenames to add |
||
|
|||
55 | * @param PagesInterface $pages Optional pages constraint used for every added pdf |
||
56 | */ |
||
57 | public function addIterator(iterable $iterator, PagesInterface $pages = null): void |
||
63 | |||
64 | /** |
||
65 | * Merges loaded PDFs |
||
66 | */ |
||
67 | public function merge(): string |
||
71 | |||
72 | /** |
||
73 | * Reset internal state |
||
74 | */ |
||
75 | public function reset(): void |
||
79 | } |
||
80 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.