Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/transcript/HeraldApplyTranscript.php
<?php | <?php | ||||
final class HeraldApplyTranscript extends Phobject { | final class HeraldApplyTranscript extends Phobject { | ||||
private $action; | private $action; | ||||
private $target; | private $target; | ||||
private $ruleID; | private $ruleID; | ||||
private $effector; | |||||
private $reason; | private $reason; | ||||
private $applied; | private $applied; | ||||
private $appliedReason; | private $appliedReason; | ||||
public function __construct( | public function __construct( | ||||
HeraldEffect $effect, | HeraldEffect $effect, | ||||
$applied, | $applied, | ||||
$reason = null) { | $reason = null) { | ||||
$this->setAction($effect->getAction()); | $this->setAction($effect->getAction()); | ||||
$this->setTarget($effect->getTarget()); | $this->setTarget($effect->getTarget()); | ||||
$this->setRuleID($effect->getRuleID()); | $this->setRuleID($effect->getRuleID()); | ||||
$this->setEffector($effect->getEffector()); | |||||
$this->setReason($effect->getReason()); | $this->setReason($effect->getReason()); | ||||
$this->setApplied($applied); | $this->setApplied($applied); | ||||
$this->setAppliedReason($reason); | $this->setAppliedReason($reason); | ||||
} | } | ||||
public function setAction($action) { | public function setAction($action) { | ||||
$this->action = $action; | $this->action = $action; | ||||
return $this; | return $this; | ||||
Show All 16 Lines | public function setRuleID($rule_id) { | ||||
$this->ruleID = $rule_id; | $this->ruleID = $rule_id; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getRuleID() { | public function getRuleID() { | ||||
return $this->ruleID; | return $this->ruleID; | ||||
} | } | ||||
public function setEffector($effector) { | |||||
$this->effector = $effector; | |||||
return $this; | |||||
} | |||||
public function getEffector() { | |||||
return $this->effector; | |||||
} | |||||
public function setReason($reason) { | public function setReason($reason) { | ||||
$this->reason = $reason; | $this->reason = $reason; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getReason() { | public function getReason() { | ||||
return $this->reason; | return $this->reason; | ||||
} | } | ||||
Show All 20 Lines |