Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/storage/PhabricatorTypeaheadResult.php
Show All 11 Lines | final class PhabricatorTypeaheadResult extends Phobject { | ||||
private $priorityType; | private $priorityType; | ||||
private $imageSprite; | private $imageSprite; | ||||
private $icon; | private $icon; | ||||
private $color; | private $color; | ||||
private $closed; | private $closed; | ||||
private $tokenType; | private $tokenType; | ||||
private $unique; | private $unique; | ||||
private $autocomplete; | private $autocomplete; | ||||
private $attributes; | |||||
public function setIcon($icon) { | public function setIcon($icon) { | ||||
$this->icon = $icon; | $this->icon = $icon; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setName($name) { | public function setName($name) { | ||||
$this->name = $name; | $this->name = $name; | ||||
▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | private function getDefaultIcon() { | ||||
$phid_type = phid_get_type($this->phid); | $phid_type = phid_get_type($this->phid); | ||||
if (isset($icon_map[$phid_type])) { | if (isset($icon_map[$phid_type])) { | ||||
return $icon_map[$phid_type]; | return $icon_map[$phid_type]; | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
public function getAttributes() { | |||||
return $this->attributes; | |||||
} | |||||
public function addAttribute($attribute) { | |||||
$this->attributes[] = $attribute; | |||||
return $this; | |||||
} | |||||
} | } |