@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 81 lines 1.6 kB view raw
1<?php 2 3final class HeraldApplyTranscript extends Phobject { 4 5 private $action; 6 private $target; 7 private $ruleID; 8 private $reason; 9 private $applied; 10 private $appliedReason; 11 12 public function __construct( 13 HeraldEffect $effect, 14 $applied, 15 $reason = null) { 16 17 $this->setAction($effect->getAction()); 18 $this->setTarget($effect->getTarget()); 19 if ($effect->getRule()) { 20 $this->setRuleID($effect->getRule()->getID()); 21 } 22 $this->setReason($effect->getReason()); 23 $this->setApplied($applied); 24 $this->setAppliedReason($reason); 25 } 26 27 public function setAction($action) { 28 $this->action = $action; 29 return $this; 30 } 31 32 public function getAction() { 33 return $this->action; 34 } 35 36 public function setTarget($target) { 37 $this->target = $target; 38 return $this; 39 } 40 41 public function getTarget() { 42 return $this->target; 43 } 44 45 public function setRuleID($rule_id) { 46 $this->ruleID = $rule_id; 47 return $this; 48 } 49 50 public function getRuleID() { 51 return $this->ruleID; 52 } 53 54 public function setReason($reason) { 55 $this->reason = $reason; 56 return $this; 57 } 58 59 public function getReason() { 60 return $this->reason; 61 } 62 63 public function setApplied($applied) { 64 $this->applied = $applied; 65 return $this; 66 } 67 68 public function getApplied() { 69 return $this->applied; 70 } 71 72 public function setAppliedReason($applied_reason) { 73 $this->appliedReason = $applied_reason; 74 return $this; 75 } 76 77 public function getAppliedReason() { 78 return $this->appliedReason; 79 } 80 81}