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

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

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