REBELinBLUE\Deployer\Presenters\DeploymentPresenter::presentTimelineCssClass PHP Метод

presentTimelineCssClass() публичный Метод

Gets the CSS class for the deployment status for the timeline.
public presentTimelineCssClass ( ) : string
Результат string
    public function presentTimelineCssClass()
    {
        if ($this->status === Deployment::COMPLETED || $this->status === Deployment::COMPLETED_WITH_ERRORS) {
            return 'green';
        } elseif (in_array($this->status, [Deployment::FAILED, Deployment::ABORTING, Deployment::ABORTED], true)) {
            return 'red';
        } elseif ($this->status === Deployment::DEPLOYING) {
            return 'yellow';
        }
        return 'aqua';
    }