From 1ab821a2caef96ca33e8ea5c26a5bf01c51f1cb2 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 20 Jul 2016 11:31:00 +0200 Subject: Documentation Calculatable; made calculate* protected --- classes/discount.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/discount.php') diff --git a/classes/discount.php b/classes/discount.php index 3428584..31be887 100644 --- a/classes/discount.php +++ b/classes/discount.php @@ -227,11 +227,11 @@ class discount { // Other functions //------------------------------------------------------------------------------ - public function calculateSubtotal() { + protected function calculateSubtotal() { return - $this->value; } - public function calculateVAT() { + protected function calculateVAT() { return $this->calculateSubtotal() * $this->getVAT() / 100; } -- cgit v1.2.3