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/assignment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/assignment.php') diff --git a/classes/assignment.php b/classes/assignment.php index 502f5d5..25b6432 100644 --- a/classes/assignment.php +++ b/classes/assignment.php @@ -258,11 +258,11 @@ class assignment { // Other functions //------------------------------------------------------------------------------ - public function calculateSubtotal() { + protected function calculateSubtotal() { return $this->getHours() * $this->getPricePerHour(); } - public function calculateVAT() { + protected function calculateVAT() { return $this->calculateSubtotal() * $this->getVAT() / 100; } -- cgit v1.2.3