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

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

Gets the CSS icon class for the deployment status.
public presentIcon ( ) : string
Результат string
    public function presentIcon()
    {
        $finished_statuses = [Deployment::FAILED, Deployment::COMPLETED_WITH_ERRORS, Deployment::ABORTING, Deployment::ABORTED];
        if ($this->status === Deployment::COMPLETED) {
            return 'check';
        } elseif (in_array($this->status, $finished_statuses, true)) {
            return 'warning';
        } elseif ($this->status === Deployment::DEPLOYING) {
            return 'spinner fa-pulse';
        }
        return 'clock-o';
    }