public function getStatusText() { $text = ''; switch ($this->status) { case self::STATUS_NOT_PROCESSED: $text = 'Not processed'; break; case self::STATUS_CONFLICT: $text = 'Conflict'; break; case self::STATUS_MERGED: $text = 'Merged'; break; default: $text = 'Unknown'; } return $text; }