REBELinBLUE\Deployer\Presenters\DeploymentPresenter::presentReadableStatus PHP Method

presentReadableStatus() public method

Gets the translated deployment status string.
public presentReadableStatus ( ) : string
return string
    public function presentReadableStatus()
    {
        if ($this->status === Deployment::COMPLETED) {
            return Lang::get('deployments.completed');
        } elseif ($this->status === Deployment::COMPLETED_WITH_ERRORS) {
            return Lang::get('deployments.completed_with_errors');
        } elseif ($this->status === Deployment::ABORTING) {
            return Lang::get('deployments.aborting');
        } elseif ($this->status === Deployment::ABORTED) {
            return Lang::get('deployments.aborted');
        } elseif ($this->status === Deployment::FAILED) {
            return Lang::get('deployments.failed');
        } elseif ($this->status === Deployment::DEPLOYING) {
            return Lang::get('deployments.deploying');
        }
        return Lang::get('deployments.pending');
    }