From bfc3f69adbd3bc22569af53195e8f0c067bfd982 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 24 May 2016 16:08:18 -0700 Subject: [PATCH] Better comments on model methods --- app/Models/Statuslabel.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Models/Statuslabel.php b/app/Models/Statuslabel.php index 5e2dfe1499..a9d8a17679 100755 --- a/app/Models/Statuslabel.php +++ b/app/Models/Statuslabel.php @@ -23,11 +23,22 @@ class Statuslabel extends Model protected $fillable = ['name']; + /** + * Show count of assets with status label + * + * @todo Remove this. It's dumb. + * @return Collection + */ public function has_assets() { return $this->hasMany('\App\Models\Asset', 'status_id')->count(); } + /** + * Get assets with associated status label + * + * @return Collection + */ public function assets() { return $this->hasMany('\App\Models\Asset', 'status_id');