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

View File

@ -1,6 +1,10 @@
<?php
class HomeController extends Controller {
/**
* Returns the rendered Blade templates.
* @return View
*/
public function showIndex() {
return View::make('index');
}

View File

@ -1,6 +1,10 @@
<?php
class Component extends Eloquent {
/**
* Looks up the human readable version of the status.
* @return string
*/
public function getHumanStatusAttribute() {
switch ($this->status) {
case 1: return 'Operational';
@ -10,6 +14,10 @@
}
}
/**
* Color of the label for each status.
* @return string HTML class name
*/
public function getColorAttribute() {
switch ($this->status) {
case 1: return 'text-success';