mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Add rulePHID
to HeraldEffect
Summary: Ref T4195. Herald rules gained PHIDs only recently, propagate them to HeraldEffect to make some of the hook stuff eaiser. Test Plan: iiam Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4195 Differential Revision: https://secure.phabricator.com/D7781
This commit is contained in:
parent
f28d3089d7
commit
baa756a027
2 changed files with 17 additions and 6 deletions
|
@ -2,14 +2,15 @@
|
||||||
|
|
||||||
final class HeraldEffect {
|
final class HeraldEffect {
|
||||||
|
|
||||||
protected $objectPHID;
|
private $objectPHID;
|
||||||
protected $action;
|
private $action;
|
||||||
protected $target;
|
private $target;
|
||||||
|
|
||||||
protected $ruleID;
|
private $ruleID;
|
||||||
protected $effector;
|
private $rulePHID;
|
||||||
|
private $effector;
|
||||||
|
|
||||||
protected $reason;
|
private $reason;
|
||||||
|
|
||||||
public function setObjectPHID($object_phid) {
|
public function setObjectPHID($object_phid) {
|
||||||
$this->objectPHID = $object_phid;
|
$this->objectPHID = $object_phid;
|
||||||
|
@ -47,6 +48,15 @@ final class HeraldEffect {
|
||||||
return $this->ruleID;
|
return $this->ruleID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setRulePHID($rule_phid) {
|
||||||
|
$this->rulePHID = $rule_phid;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRulePHID() {
|
||||||
|
return $this->rulePHID;
|
||||||
|
}
|
||||||
|
|
||||||
public function setEffector($effector) {
|
public function setEffector($effector) {
|
||||||
$this->effector = $effector;
|
$this->effector = $effector;
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
@ -359,6 +359,7 @@ final class HeraldEngine {
|
||||||
$effect->setTarget($action->getTarget());
|
$effect->setTarget($action->getTarget());
|
||||||
|
|
||||||
$effect->setRuleID($rule->getID());
|
$effect->setRuleID($rule->getID());
|
||||||
|
$effect->setRulePHID($rule->getPHID());
|
||||||
|
|
||||||
$name = $rule->getName();
|
$name = $rule->getName();
|
||||||
$id = $rule->getID();
|
$id = $rule->getID();
|
||||||
|
|
Loading…
Reference in a new issue