1 | <?php |
||
17 | class InvoiceManager implements ClientManagerInterface |
||
18 | { |
||
19 | /** @var ObjectServiceInterface */ |
||
20 | private $objectManager; |
||
21 | /** @var string */ |
||
22 | private $reqRoute; |
||
23 | /** @var Invoice */ |
||
24 | private $objectType; |
||
25 | |||
26 | /** |
||
27 | * InvoiceManager constructor. |
||
28 | * |
||
29 | * @param ObjectServiceInterface $objectManager |
||
30 | */ |
||
31 | public function __construct(ObjectServiceInterface $objectManager) |
||
37 | |||
38 | /** |
||
39 | * @param InvoiceInterface $invoice |
||
40 | * |
||
41 | * @return InvoiceInterface |
||
42 | */ |
||
43 | public function createInvoice(InvoiceInterface $invoice) :InvoiceInterface |
||
47 | |||
48 | public function delete(InvoiceInterface $invoice) :InvoiceInterface |
||
52 | |||
53 | public function update(InvoiceInterface $invoice) :InvoiceInterface |
||
57 | |||
58 | public function restore(InvoiceInterface $invoice) :InvoiceInterface |
||
62 | |||
63 | public function archive(InvoiceInterface $invoice) :InvoiceInterface |
||
67 | |||
68 | public function getInvoiceById(int $id) :InvoiceInterface |
||
72 | |||
73 | public function getInvoiceByNumber(string $invoiceNumber) :InvoiceInterface |
||
90 | |||
91 | public function getAllInvoices(int $page = 1, int $pageSize = 0) :array |
||
95 | |||
96 | public function downloadInvoice(int $invoiceId) :array |
||
100 | } |
||
101 |