Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / policy / exception / PhabricatorPolicyException.php
blob7d58666d65546ba148aaf9f79ed9560375e5203f
1 <?php
3 final class PhabricatorPolicyException extends Exception {
5 private $title;
6 private $rejection;
7 private $capabilityName;
8 private $moreInfo = array();
9 private $objectPHID;
10 private $context;
11 private $capability;
13 public function setTitle($title) {
14 $this->title = $title;
15 return $this;
18 public function getTitle() {
19 return $this->title;
22 public function setCapabilityName($capability_name) {
23 $this->capabilityName = $capability_name;
24 return $this;
27 public function getCapabilityName() {
28 return $this->capabilityName;
31 public function setRejection($rejection) {
32 $this->rejection = $rejection;
33 return $this;
36 public function getRejection() {
37 return $this->rejection;
40 public function setMoreInfo(array $more_info) {
41 $this->moreInfo = $more_info;
42 return $this;
45 public function getMoreInfo() {
46 return $this->moreInfo;
49 public function setObjectPHID($object_phid) {
50 $this->objectPHID = $object_phid;
51 return $this;
54 public function getObjectPHID() {
55 return $this->objectPHID;
58 public function setContext($context) {
59 $this->context = $context;
60 return $this;
63 public function getContext() {
64 return $this->context;
67 public function setCapability($capability) {
68 $this->capability = $capability;
69 return $this;
72 public function getCapability() {
73 return $this->capability;