Changeset View
Changeset View
Standalone View
Standalone View
src/ref/ArcanistRevisionRef.php
Show All 22 Lines | final class ArcanistRevisionRef | ||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'D'.$this->getID(); | return 'D'.$this->getID(); | ||||
} | } | ||||
public function getStatusDisplayName() { | public function getStatusDisplayName() { | ||||
return idx($this->parameters, 'statusName'); | return idx($this->parameters, 'statusName'); | ||||
} | } | ||||
public function isClosed() { | |||||
// TODO: This should use sensible constants, not English language | |||||
// display text. | |||||
switch ($this->getStatusDisplayName()) { | |||||
case 'Abandoned': | |||||
case 'Closed': | |||||
return true; | |||||
} | |||||
return false; | |||||
} | |||||
public function getURI() { | |||||
return idx($this->parameters, 'uri'); | |||||
} | |||||
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'); | ||||
} | } | ||||
Show All 14 Lines |