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 getRefDisplayName() { | public function getRefDisplayName() { | ||||
return pht('Revision %s', $this->getMonogram()); | return pht('Revision %s', $this->getMonogram()); | ||||
} | } | ||||
public function defineHardpoints() { | |||||
return array(); | |||||
} | |||||
public static function newFromConduit(array $dict) { | public static function newFromConduit(array $dict) { | ||||
$ref = new self(); | $ref = new self(); | ||||
$ref->parameters = $dict; | $ref->parameters = $dict; | ||||
return $ref; | return $ref; | ||||
} | } | ||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'D'.$this->getID(); | return 'D'.$this->getID(); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |