Component now has a humanStatus attribute

This commit is contained in:
James Brooks
2014-11-16 23:29:48 +00:00
parent f86b4000c8
commit 779f8b70e7

View File

@@ -1,5 +1,12 @@
<?php <?php
class Component extends Eloquent { class Component extends Eloquent {
public function getHumanStatus() {
switch ($this->status) {
case 1: return 'Operational';
case 2: return 'Performance Issues';
case 3: return 'Partial Outage';
case 4: return 'Major Outage';
}
}
} }