Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/storage/PhabricatorTypeaheadResult.php
Show All 12 Lines | final class PhabricatorTypeaheadResult extends Phobject { | ||||
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 = array(); | private $attributes = array(); | ||||
private $phase; | |||||
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 120 Lines • ▼ Show 20 Lines | $data = array( | ||||
$this->priorityType, | $this->priorityType, | ||||
$this->getIcon(), | $this->getIcon(), | ||||
$this->closed, | $this->closed, | ||||
$this->imageSprite ? (string)$this->imageSprite : null, | $this->imageSprite ? (string)$this->imageSprite : null, | ||||
$this->color, | $this->color, | ||||
$this->tokenType, | $this->tokenType, | ||||
$this->unique ? 1 : null, | $this->unique ? 1 : null, | ||||
$this->autocomplete, | $this->autocomplete, | ||||
$this->phase, | |||||
); | ); | ||||
while (end($data) === null) { | while (end($data) === null) { | ||||
array_pop($data); | array_pop($data); | ||||
} | } | ||||
return $data; | return $data; | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public function getAttributes() { | ||||
return $this->attributes; | return $this->attributes; | ||||
} | } | ||||
public function addAttribute($attribute) { | public function addAttribute($attribute) { | ||||
$this->attributes[] = $attribute; | $this->attributes[] = $attribute; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setPhase($phase) { | |||||
$this->phase = $phase; | |||||
return $this; | |||||
} | |||||
public function getPhase() { | |||||
return $this->phase; | |||||
} | |||||
} | } |