Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/constants/HarbormasterBuildStatus.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | final class HarbormasterBuildStatus extends Phobject { | ||||
public function isComplete() { | public function isComplete() { | ||||
return $this->getProperty('isComplete'); | return $this->getProperty('isComplete'); | ||||
} | } | ||||
public function isPassed() { | public function isPassed() { | ||||
return ($this->key === self::STATUS_PASSED); | return ($this->key === self::STATUS_PASSED); | ||||
} | } | ||||
public function isFailed() { | |||||
return ($this->key === self::STATUS_FAILED); | |||||
} | |||||
/** | /** | ||||
* Get a human readable name for a build status constant. | * Get a human readable name for a build status constant. | ||||
* | * | ||||
* @param const Build status constant. | * @param const Build status constant. | ||||
* @return string Human-readable name. | * @return string Human-readable name. | ||||
*/ | */ | ||||
public static function getBuildStatusName($status) { | public static function getBuildStatusName($status) { | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |