Issue #30 - Fixed stage values and broken tests.

This commit is contained in:
Daniel Thee Roperto
2016-09-19 13:13:03 +10:00
parent 2cfda63922
commit f0ae7b8410
4 changed files with 41 additions and 10 deletions

View File

@@ -30,27 +30,27 @@ class outage {
/**
* Outage is before warning period.
*/
const STAGE_WAITING = 1;
const STAGE_WAITING = 'waiting';
/**
* Outage not started but in warning period.
*/
const STAGE_WARNING = 2;
const STAGE_WARNING = 'warning';
/**
* Outage ongoing, it has passed the warning period.
*/
const STAGE_ONGOING = 3;
const STAGE_ONGOING = 'ongoing';
/**
* Outage finished, it is after the marked finished time.
*/
const STAGE_FINISHED = 4;
const STAGE_FINISHED = 'finished';
/**
* Outage stopped, it is after the stop time and not marked as finished.
*/
const STAGE_STOPPED = 4;
const STAGE_STOPPED = 'stopped';
/**
* @var int Outage ID (auto generated by the DB).