Page MenuHomePhabricator

D7781.id17607.diff
No OneTemporary

D7781.id17607.diff

Index: src/applications/herald/engine/HeraldEffect.php
===================================================================
--- src/applications/herald/engine/HeraldEffect.php
+++ 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;
Index: src/applications/herald/engine/HeraldEngine.php
===================================================================
--- src/applications/herald/engine/HeraldEngine.php
+++ 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/plain
Expires
Sat, Apr 19, 3:25 AM (4 d, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7588933
Default Alt Text
D7781.id17607.diff (1 KB)

Event Timeline