Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -19,14 +19,14 @@ interface CalculatorInterface
*
* @return InvoiceItem[]
*/
public function getEntries();
public function getEntries(): array;
/**
* Set the invoice model and can be used to fetch the customer.
*
* @param InvoiceModel $model
*/
public function setModel(InvoiceModel $model);
public function setModel(InvoiceModel $model): void;
/**
* Returns the subtotal before taxes.
@@ -49,20 +49,12 @@ interface CalculatorInterface
*/
public function getTotal(): float;
/**
* Returns the currency for the invoices amounts.
*
* @deprecated since 1.8 will be removed with 2.0
* @return string
*/
public function getCurrency(): string;
/**
* Returns the percentage for the value-added tax (VAT) calculation.
*
* @return float
*/
public function getVat(): ?float;
public function getVat(): float;
/**
* Returns the total amount of worked time in seconds.