events: extend system configurations and set invoice formatter (#1995)
This commit is contained in:
@@ -267,11 +267,18 @@ final class InvoiceModel
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFormatter(): ?InvoiceFormatter
|
||||
public function getFormatter(): InvoiceFormatter
|
||||
{
|
||||
return $this->formatter;
|
||||
}
|
||||
|
||||
public function setFormatter(InvoiceFormatter $formatter): InvoiceModel
|
||||
{
|
||||
$this->formatter = $formatter;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCurrency(): string
|
||||
{
|
||||
if (null === $this->getCustomer()) {
|
||||
|
||||
Reference in New Issue
Block a user