Changeset View
Changeset View
Standalone View
Standalone View
src/ref/revision/ArcanistRevisionRef.php
| <?php | <?php | ||||
| final class ArcanistRevisionRef | final class ArcanistRevisionRef | ||||
| extends ArcanistRef | extends ArcanistRef { | ||||
| implements | |||||
| ArcanistDisplayRefInterface { | |||||
| const HARDPOINT_COMMITMESSAGE = 'ref.revision.commitmessage'; | const HARDPOINT_COMMITMESSAGE = 'ref.revision.commitmessage'; | ||||
| const HARDPOINT_AUTHORREF = 'ref.revision.authorRef'; | const HARDPOINT_AUTHORREF = 'ref.revision.authorRef'; | ||||
| const HARDPOINT_BUILDABLEREF = 'ref.revision.buildableRef'; | const HARDPOINT_BUILDABLEREF = 'ref.revision.buildableRef'; | ||||
| const HARDPOINT_PARENTREVISIONREFS = 'ref.revision.parentRevisionRefs'; | const HARDPOINT_PARENTREVISIONREFS = 'ref.revision.parentRevisionRefs'; | ||||
| private $parameters; | private $parameters; | ||||
| private $sources = array(); | private $sources = array(); | ||||
| ▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | final class ArcanistRevisionRef | ||||
| public function getParentRevisionRefs() { | public function getParentRevisionRefs() { | ||||
| return $this->getHardpoint(self::HARDPOINT_PARENTREVISIONREFS); | return $this->getHardpoint(self::HARDPOINT_PARENTREVISIONREFS); | ||||
| } | } | ||||
| public function getBuildableRef() { | public function getBuildableRef() { | ||||
| return $this->getHardpoint(self::HARDPOINT_BUILDABLEREF); | return $this->getHardpoint(self::HARDPOINT_BUILDABLEREF); | ||||
| } | } | ||||
| public function getDisplayRefObjectName() { | protected function buildRefView(ArcanistRefView $view) { | ||||
| return $this->getMonogram(); | $view | ||||
| } | ->setObjectName($this->getMonogram()) | ||||
| ->setTitle($this->getTitle()); | |||||
| public function getDisplayRefTitle() { | |||||
| return $this->getName(); | |||||
| } | } | ||||
| } | } | ||||