Page MenuHomePhabricator

D7781.diff

diff --git a/src/applications/herald/engine/HeraldEffect.php b/src/applications/herald/engine/HeraldEffect.php
--- a/src/applications/herald/engine/HeraldEffect.php
+++ b/src/applications/herald/engine/HeraldEffect.php
@@ -2,14 +2,15 @@
final class HeraldEffect {
- protected $objectPHID;
- protected $action;
- protected $target;
+ private $objectPHID;
+ private $action;
+ private $target;
- protected $ruleID;
- protected $effector;
+ private $ruleID;
+ private $rulePHID;
+ private $effector;
- protected $reason;
+ private $reason;
public function setObjectPHID($object_phid) {
$this->objectPHID = $object_phid;
@@ -47,6 +48,15 @@
return $this->ruleID;
}
+ public function setRulePHID($rule_phid) {
+ $this->rulePHID = $rule_phid;
+ return $this;
+ }
+
+ public function getRulePHID() {
+ return $this->rulePHID;
+ }
+
public function setEffector($effector) {
$this->effector = $effector;
return $this;
diff --git a/src/applications/herald/engine/HeraldEngine.php b/src/applications/herald/engine/HeraldEngine.php
--- a/src/applications/herald/engine/HeraldEngine.php
+++ b/src/applications/herald/engine/HeraldEngine.php
@@ -359,6 +359,7 @@
$effect->setTarget($action->getTarget());
$effect->setRuleID($rule->getID());
+ $effect->setRulePHID($rule->getPHID());
$name = $rule->getName();
$id = $rule->getID();

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/mi/y2/5eyvlhlxvjynpf2f
Default Alt Text
D7781.diff (1 KB)

Event Timeline