1 | <?php |
||
20 | final class InvoicePdfFileGenerator implements FileGeneratorInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var FilenameGeneratorInterface |
||
24 | */ |
||
25 | private $filenameGenerator; |
||
26 | |||
27 | /** |
||
28 | * @var GeneratorInterface |
||
29 | */ |
||
30 | private $pdfFileGenerator; |
||
31 | |||
32 | /** |
||
33 | * @var EngineInterface |
||
34 | */ |
||
35 | private $templatingEngine; |
||
36 | |||
37 | /** |
||
38 | * @var CompanyDataResolverInterface |
||
39 | */ |
||
40 | private $companyDataResolver; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | private $filesPath; |
||
46 | |||
47 | /** |
||
48 | * @param GeneratorInterface $pdfFileGenerator |
||
49 | * @param EngineInterface $templatingEngine |
||
50 | * @param CompanyDataResolverInterface $companyDataResolver |
||
51 | * @param FilenameGeneratorInterface $filenameGenerator |
||
52 | * @param string $filesPath |
||
53 | */ |
||
54 | public function __construct( |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function generateFile(InvoiceInterface $invoice): string |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function getFilesDirectoryPath(): string |
||
94 | } |
||
95 |