From 2a96913005f0ae4146504e71f2781386f2d10cae Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Fri, 15 Feb 2019 14:40:58 +0800 Subject: [PATCH] Add docblocks on Job and Project model --- app/Entities/Projects/Job.php | 5 +++++ app/Entities/Projects/Project.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/app/Entities/Projects/Job.php b/app/Entities/Projects/Job.php index 4418233..14f1c27 100755 --- a/app/Entities/Projects/Job.php +++ b/app/Entities/Projects/Job.php @@ -111,6 +111,11 @@ class Job extends Model return $this->price * ($this->progress / 100); } + /** + * Delete the model from the database. + * + * @return bool|null + */ public function delete() { DB::beginTransaction(); diff --git a/app/Entities/Projects/Project.php b/app/Entities/Projects/Project.php index 91742c2..d2ed10c 100755 --- a/app/Entities/Projects/Project.php +++ b/app/Entities/Projects/Project.php @@ -246,6 +246,11 @@ class Project extends Model return $workDuration.' Day(s)'; } + /** + * Delete the model from the database. + * + * @return bool|null + */ public function delete() { DB::beginTransaction();