Changeset View
Changeset View
Standalone View
Standalone View
src/ref/ArcanistRevisionRef.php
| <?php | <?php | ||||
| final class ArcanistRevisionRef | final class ArcanistRevisionRef | ||||
| extends ArcanistRef { | extends ArcanistRef { | ||||
| private $parameters; | private $parameters; | ||||
| private $sources = array(); | private $sources = array(); | ||||
| public function getRefIdentifier() { | public function getRefDisplayName() { | ||||
| return pht('Revision %s', $this->getMonogram()); | return pht('Revision %s', $this->getMonogram()); | ||||
| } | } | ||||
| public function defineHardpoints() { | public function defineHardpoints() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| public static function newFromConduit(array $dict) { | public static function newFromConduit(array $dict) { | ||||
| Show All 29 Lines | final class ArcanistRevisionRef | ||||
| public function getFullName() { | public function getFullName() { | ||||
| return pht('%s: %s', $this->getMonogram(), $this->getName()); | return pht('%s: %s', $this->getMonogram(), $this->getName()); | ||||
| } | } | ||||
| public function getID() { | public function getID() { | ||||
| return idx($this->parameters, 'id'); | return idx($this->parameters, 'id'); | ||||
| } | } | ||||
| public function getPHID() { | |||||
| return idx($this->parameters, 'phid'); | |||||
| } | |||||
| public function getName() { | public function getName() { | ||||
| return idx($this->parameters, 'title'); | return idx($this->parameters, 'title'); | ||||
| } | } | ||||
| public function getAuthorPHID() { | public function getAuthorPHID() { | ||||
| return idx($this->parameters, 'authorPHID'); | return idx($this->parameters, 'authorPHID'); | ||||
| } | } | ||||
| Show All 10 Lines | |||||