Differential D18731 Diff 44973 src/applications/herald/storage/transcript/HeraldConditionTranscript.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/transcript/HeraldConditionTranscript.php
<?php | <?php | ||||
final class HeraldConditionTranscript extends Phobject { | final class HeraldConditionTranscript extends Phobject { | ||||
protected $ruleID; | protected $ruleID; | ||||
protected $conditionID; | protected $conditionID; | ||||
protected $fieldName; | protected $fieldName; | ||||
protected $condition; | protected $condition; | ||||
protected $testValue; | protected $testValue; | ||||
protected $note; | protected $note; | ||||
protected $result; | protected $result; | ||||
const RESULT_FORBIDDEN = 'forbidden'; | |||||
public function setRuleID($rule_id) { | 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; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | final class HeraldConditionTranscript extends Phobject { | ||||
public function setResult($result) { | public function setResult($result) { | ||||
$this->result = $result; | $this->result = $result; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getResult() { | public function getResult() { | ||||
return $this->result; | return $this->result; | ||||
} | } | ||||
public function isForbidden() { | |||||
return ($this->getResult() === self::RESULT_FORBIDDEN); | |||||
} | |||||
} | } |