Changeset View
Changeset View
Standalone View
Standalone View
src/ref/ArcanistRevisionRef.php
| Show All 23 Lines | 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() { | public function isClosed() { | ||||
| // TODO: This should use sensible constants, not English language | // TODO: This should use sensible constants, not English language | ||||
Lint: TODO Comment: This comment has a TODO. | |||||
| // display text. | // display text. | ||||
| switch ($this->getStatusDisplayName()) { | switch ($this->getStatusDisplayName()) { | ||||
| case 'Abandoned': | case 'Abandoned': | ||||
| case 'Closed': | case 'Closed': | ||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | return false; | ||||
| Show All 10 Lines | final class ArcanistRevisionRef | ||||
| public function getID() { | public function getID() { | ||||
| return idx($this->parameters, 'id'); | return idx($this->parameters, 'id'); | ||||
| } | } | ||||
| public function getName() { | public function getName() { | ||||
| return idx($this->parameters, 'title'); | return idx($this->parameters, 'title'); | ||||
| } | } | ||||
| public function getAuthorPHID() { | |||||
| return idx($this->parameters, 'authorPHID'); | |||||
| } | |||||
| public function addSource(ArcanistRevisionRefSource $source) { | public function addSource(ArcanistRevisionRefSource $source) { | ||||
| $this->sources[] = $source; | $this->sources[] = $source; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getSources() { | public function getSources() { | ||||
| return $this->sources; | return $this->sources; | ||||
| } | } | ||||
| } | } | ||||
This comment has a TODO.