Release 2.0.35 (#4302)
This commit is contained in:
@@ -17,7 +17,7 @@ final class InvoiceItemDefaultHydrator implements InvoiceItemHydrator
|
||||
{
|
||||
private InvoiceModel $model;
|
||||
|
||||
public function setInvoiceModel(InvoiceModel $model)
|
||||
public function setInvoiceModel(InvoiceModel $model): void
|
||||
{
|
||||
$this->model = $model;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace App\Invoice;
|
||||
|
||||
interface InvoiceItemHydrator
|
||||
{
|
||||
public function setInvoiceModel(InvoiceModel $model);
|
||||
public function setInvoiceModel(InvoiceModel $model): void;
|
||||
|
||||
public function hydrate(InvoiceItem $item): array;
|
||||
}
|
||||
|
||||
@@ -120,11 +120,9 @@ abstract class AbstractSpreadsheetRenderer extends AbstractRenderer
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Worksheet $worksheet
|
||||
* @param int $invoiceItemCount
|
||||
* @throws \PhpOffice\PhpSpreadsheet\Exception
|
||||
*/
|
||||
protected function addTemplateRows(Worksheet $worksheet, int $invoiceItemCount)
|
||||
protected function addTemplateRows(Worksheet $worksheet, int $invoiceItemCount): void
|
||||
{
|
||||
$startRow = null;
|
||||
$rowCounter = 0;
|
||||
|
||||
@@ -229,7 +229,7 @@ final class ServiceInvoice
|
||||
return $filename;
|
||||
}
|
||||
|
||||
public function changeInvoiceStatus(Invoice $invoice, string $status)
|
||||
public function changeInvoiceStatus(Invoice $invoice, string $status): void
|
||||
{
|
||||
switch ($status) {
|
||||
case Invoice::STATUS_NEW:
|
||||
@@ -256,7 +256,6 @@ final class ServiceInvoice
|
||||
}
|
||||
|
||||
/**
|
||||
* @param InvoiceQuery $query
|
||||
* @return ExportableItem[]
|
||||
*/
|
||||
public function getInvoiceItems(InvoiceQuery $query): array
|
||||
@@ -273,7 +272,7 @@ final class ServiceInvoice
|
||||
/**
|
||||
* @param ExportableItem[] $entries
|
||||
*/
|
||||
private function markEntriesAsExported(array $entries)
|
||||
private function markEntriesAsExported(array $entries): void
|
||||
{
|
||||
foreach ($this->getInvoiceItemRepositories() as $repository) {
|
||||
$repository->setExported($entries);
|
||||
@@ -309,9 +308,6 @@ final class ServiceInvoice
|
||||
}
|
||||
|
||||
/**
|
||||
* @param InvoiceModel $model
|
||||
* @param EventDispatcherInterface $dispatcher
|
||||
* @return Invoice
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function createInvoice(InvoiceModel $model, EventDispatcherInterface $dispatcher): Invoice
|
||||
@@ -362,7 +358,7 @@ final class ServiceInvoice
|
||||
);
|
||||
}
|
||||
|
||||
public function deleteInvoice(Invoice $invoice, EventDispatcherInterface $dispatcher)
|
||||
public function deleteInvoice(Invoice $invoice, EventDispatcherInterface $dispatcher): void
|
||||
{
|
||||
$invoiceDirectory = $this->getInvoicesDirectory();
|
||||
|
||||
@@ -377,8 +373,6 @@ final class ServiceInvoice
|
||||
}
|
||||
|
||||
/**
|
||||
* @param InvoiceQuery $query
|
||||
* @return InvoiceModel
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function createModel(InvoiceQuery $query): InvoiceModel
|
||||
@@ -485,7 +479,6 @@ final class ServiceInvoice
|
||||
}
|
||||
|
||||
/**
|
||||
* @param InvoiceQuery $query
|
||||
* @return InvoiceModel[]
|
||||
* @throws \Exception
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user