1 | <?php |
||
15 | final class GenericInvoiceProcessor implements InvoiceProcessorInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var InvoiceNumberGeneratorInterface |
||
19 | */ |
||
20 | private $invoiceNumberGenerator; |
||
21 | |||
22 | /** |
||
23 | * @var PdfHelperInterface |
||
24 | */ |
||
25 | private $pdfHelper; |
||
26 | |||
27 | public function __construct(InvoiceNumberGeneratorInterface $invoiceNumberGenerator, PdfHelperInterface $pdfHelper) |
||
32 | |||
33 | public function getAlias(): string |
||
37 | |||
38 | public function save(Invoice $invoice) |
||
42 | |||
43 | public function void(Invoice $invoice) |
||
47 | |||
48 | public function download(Invoice $invoice): Response |
||
51 | |||
52 | public function send(Invoice $invoice) |
||
55 | } |
||
56 |