From 61f6fbfba0a5d97b22fed58f535c70fa2e4ea53e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Nov 2017 16:21:30 +0100 Subject: [PATCH] General bug fixes --- Models/Invoice.php | 8 ++++---- Models/InvoiceElement.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Models/Invoice.php b/Models/Invoice.php index f6cdf86..622da65 100644 --- a/Models/Invoice.php +++ b/Models/Invoice.php @@ -98,7 +98,7 @@ class Invoice implements \JsonSerializable /** * Person refering for this order. * - * @var \DateTime + * @var int * @since 1.0.0 */ private $referer = 0; @@ -385,14 +385,14 @@ class Invoice implements \JsonSerializable return $this->insurance; } - public function setFreight(Money $freigth) /* : void */ + public function setFreight(Money $freight) /* : void */ { $this->freight = $freight; } - public function getFreigth() : Money + public function getFreight() : Money { - return $this->freigth; + return $this->freight; } public function getNet() : Money diff --git a/Models/InvoiceElement.php b/Models/InvoiceElement.php index 596b581..a0b8fd7 100644 --- a/Models/InvoiceElement.php +++ b/Models/InvoiceElement.php @@ -55,7 +55,7 @@ class InvoiceElement implements \JsonSerializable private $totalPriceNet = null; - private $taxP = 0; + private $taxP = null; private $taxR = null;