Docbloc some things

This commit is contained in:
James Brooks
2014-11-23 20:21:06 +00:00
parent defac177fd
commit 8d4bf3f5ea
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -1,6 +1,10 @@
<?php <?php
class HomeController extends Controller { class HomeController extends Controller {
/**
* Returns the rendered Blade templates.
* @return View
*/
public function showIndex() { public function showIndex() {
return View::make('index'); return View::make('index');
} }
+8
View File
@@ -1,6 +1,10 @@
<?php <?php
class Component extends Eloquent { class Component extends Eloquent {
/**
* Looks up the human readable version of the status.
* @return string
*/
public function getHumanStatusAttribute() { public function getHumanStatusAttribute() {
switch ($this->status) { switch ($this->status) {
case 1: return 'Operational'; case 1: return 'Operational';
@@ -10,6 +14,10 @@
} }
} }
/**
* Color of the label for each status.
* @return string HTML class name
*/
public function getColorAttribute() { public function getColorAttribute() {
switch ($this->status) { switch ($this->status) {
case 1: return 'text-success'; case 1: return 'text-success';