diff options
author | Camil Staps | 2016-07-20 11:31:00 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-20 11:31:00 +0200 |
commit | 1ab821a2caef96ca33e8ea5c26a5bf01c51f1cb2 (patch) | |
tree | bcf0634c66580c2840ecf785dce76b48a855a893 /classes/assignment.php | |
parent | Spaces to tabs in classes (diff) |
Documentation Calculatable; made calculate* protected
Diffstat (limited to 'classes/assignment.php')
-rw-r--r-- | classes/assignment.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |