/** * @return int */ public function getStateColor() { return GithubCommitStatusState::getColor((int) $this->state); }