Changeset View
Changeset View
Standalone View
Standalone View
src/repository/marker/ArcanistMarkerRef.php
Show All 14 Lines | final class ArcanistMarkerRef | ||||
private $epoch; | private $epoch; | ||||
private $markerHash; | private $markerHash; | ||||
private $commitHash; | private $commitHash; | ||||
private $displayHash; | private $displayHash; | ||||
private $treeHash; | private $treeHash; | ||||
private $summary; | private $summary; | ||||
private $message; | private $message; | ||||
private $isActive = false; | private $isActive = false; | ||||
private $remoteName; | |||||
public function getRefDisplayName() { | public function getRefDisplayName() { | ||||
switch ($this->getMarkerType()) { | switch ($this->getMarkerType()) { | ||||
case self::TYPE_BRANCH: | case self::TYPE_BRANCH: | ||||
return pht('Branch "%s"', $this->getName()); | return pht('Branch "%s"', $this->getName()); | ||||
case self::TYPE_BOOKMARK: | case self::TYPE_BOOKMARK: | ||||
return pht('Bookmark "%s"', $this->getName()); | return pht('Bookmark "%s"', $this->getName()); | ||||
default: | default: | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | public function setIsActive($is_active) { | ||||
$this->isActive = $is_active; | $this->isActive = $is_active; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getIsActive() { | public function getIsActive() { | ||||
return $this->isActive; | return $this->isActive; | ||||
} | } | ||||
public function setRemoteName($remote_name) { | |||||
$this->remoteName = $remote_name; | |||||
return $this; | |||||
} | |||||
public function getRemoteName() { | |||||
return $this->remoteName; | |||||
} | |||||
public function isBookmark() { | public function isBookmark() { | ||||
return ($this->getMarkerType() === self::TYPE_BOOKMARK); | return ($this->getMarkerType() === self::TYPE_BOOKMARK); | ||||
} | } | ||||
public function isBranch() { | public function isBranch() { | ||||
return ($this->getMarkerType() === self::TYPE_BRANCH); | return ($this->getMarkerType() === self::TYPE_BRANCH); | ||||
} | } | ||||
Show All 36 Lines |