for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2017 Francois-Xavier Soubirou.
*
* This file is part of ci-report.
* ci-report is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* ci-report is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with ci-report. If not, see <http://www.gnu.org/licenses/>.
*/
namespace AppBundle\Entity;
* Status class.
class Status {
const SUCCESS = 1;
const FAILED = 2;
const ERROR = 4;
const SKIPPED = 8;
const WARNING = 16;
Const LABEL = array(
1 => "Passed",
2 => "Failed",
4 => "Errored",
8 => "Skipped",
16 => "Warning",
);
* Get label status.
* @param int $status
* @return string
static public function getLabel(int $status) {
static
return Status::LABEL[$status];
}