Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/exception/PhabricatorPolicyException.php
<?php | <?php | ||||
final class PhabricatorPolicyException extends Exception { | final class PhabricatorPolicyException extends Exception { | ||||
private $title; | private $title; | ||||
private $rejection; | private $rejection; | ||||
private $capabilityName; | private $capabilityName; | ||||
private $moreInfo = array(); | private $moreInfo = array(); | ||||
private $objectPHID; | |||||
private $context; | |||||
private $capability; | |||||
public function setTitle($title) { | public function setTitle($title) { | ||||
$this->title = $title; | $this->title = $title; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
return $this->title; | return $this->title; | ||||
Show All 21 Lines | public function setMoreInfo(array $more_info) { | ||||
$this->moreInfo = $more_info; | $this->moreInfo = $more_info; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getMoreInfo() { | public function getMoreInfo() { | ||||
return $this->moreInfo; | return $this->moreInfo; | ||||
} | } | ||||
public function setObjectPHID($object_phid) { | |||||
$this->objectPHID = $object_phid; | |||||
return $this; | |||||
} | |||||
public function getObjectPHID() { | |||||
return $this->objectPHID; | |||||
} | |||||
public function setContext($context) { | |||||
$this->context = $context; | |||||
return $this; | |||||
} | |||||
public function getContext() { | |||||
return $this->context; | |||||
} | |||||
public function setCapability($capability) { | |||||
$this->capability = $capability; | |||||
return $this; | |||||
} | |||||
public function getCapability() { | |||||
return $this->capability; | |||||
} | |||||
} | } |