3 final class PhabricatorProjectDropEffect
9 private $conditions = array();
10 private $isTriggerEffect;
13 public function setIcon($icon) {
18 public function getIcon() {
22 public function setColor($color) {
23 $this->color
= $color;
27 public function getColor() {
31 public function setContent($content) {
32 $this->content
= $content;
36 public function getContent() {
37 return $this->content
;
40 public function toDictionary() {
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(
54 'operator' => $operator,
61 public function getConditions() {
62 return $this->conditions
;
65 public function setIsTriggerEffect($is_trigger_effect) {
66 $this->isTriggerEffect
= $is_trigger_effect;
70 public function getIsTriggerEffect() {
71 return $this->isTriggerEffect
;
74 public function setIsHeader($is_header) {
75 $this->isHeader
= $is_header;
79 public function getIsHeader() {
80 return $this->isHeader
;