Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIInfoView.php
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | final class PHUIInfoView extends AphrontTagView { | ||||
} | } | ||||
public function setIcon($icon) { | public function setIcon($icon) { | ||||
if ($icon instanceof PHUIIconView) { | if ($icon instanceof PHUIIconView) { | ||||
$this->icon = $icon; | $this->icon = $icon; | ||||
} else { | } else { | ||||
$icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
->setIcon($icon); | ->setIcon($icon); | ||||
$this->icon = $icon; | |||||
} | } | ||||
return $this; | return $this; | ||||
} | } | ||||
private function getIcon() { | private function getIcon() { | ||||
if ($this->icon) { | if ($this->icon) { | ||||
return $this->icon; | return $this->icon; | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |