Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/transcript/HeraldRuleTranscript.php
<?php | <?php | ||||
final class HeraldRuleTranscript extends Phobject { | final class HeraldRuleTranscript extends Phobject { | ||||
protected $ruleID; | protected $ruleID; | ||||
protected $result; | protected $result; | ||||
protected $reason; | protected $reason; | ||||
protected $ruleName; | protected $ruleName; | ||||
protected $ruleOwner; | protected $ruleOwner; | ||||
const RESULT_FORBIDDEN = 'forbidden'; | |||||
public function isForbidden() { | |||||
return ($this->getResult() === self::RESULT_FORBIDDEN); | |||||
} | |||||
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; | ||||
} | } | ||||
Show All 37 Lines |