public presentCcTrayStatus ( ) : string | ||
Результат | string |
public function presentCcTrayStatus()
{
if ($this->status === Deployment::COMPLETED || $this->status === Deployment::COMPLETED_WITH_ERRORS) {
return 'Success';
} elseif ($this->status === Deployment::FAILED || $this->status === Deployment::ABORTED) {
return 'Failure';
}
return 'Unknown';
}