Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / project / icon / PhabricatorProjectDropEffect.php
blob3d61f9bcefb94b0298c2a15b201e50b34c1ddbb2
1 <?php
3 final class PhabricatorProjectDropEffect
4 extends Phobject {
6 private $icon;
7 private $color;
8 private $content;
9 private $conditions = array();
10 private $isTriggerEffect;
11 private $isHeader;
13 public function setIcon($icon) {
14 $this->icon = $icon;
15 return $this;
18 public function getIcon() {
19 return $this->icon;
22 public function setColor($color) {
23 $this->color = $color;
24 return $this;
27 public function getColor() {
28 return $this->color;
31 public function setContent($content) {
32 $this->content = $content;
33 return $this;
36 public function getContent() {
37 return $this->content;
40 public function toDictionary() {
41 return array(
42 'icon' => $this->getIcon(),
43 'color' => $this->getColor(),
44 'content' => hsprintf('%s', $this->getContent()),
45 'isTriggerEffect' => $this->getIsTriggerEffect(),
46 'isHeader' => $this->getIsHeader(),
47 'conditions' => $this->getConditions(),
51 public function addCondition($field, $operator, $value) {
52 $this->conditions[] = array(
53 'field' => $field,
54 'operator' => $operator,
55 'value' => $value,
58 return $this;
61 public function getConditions() {
62 return $this->conditions;
65 public function setIsTriggerEffect($is_trigger_effect) {
66 $this->isTriggerEffect = $is_trigger_effect;
67 return $this;
70 public function getIsTriggerEffect() {
71 return $this->isTriggerEffect;
74 public function setIsHeader($is_header) {
75 $this->isHeader = $is_header;
76 return $this;
79 public function getIsHeader() {
80 return $this->isHeader;