Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / auth / exception / PhabricatorAuthHighSecurityRequiredException.php
blobdc197b3a438425f145bad397a9f586e78cf68a47
1 <?php
3 final class PhabricatorAuthHighSecurityRequiredException extends Exception {
5 private $cancelURI;
6 private $factors;
7 private $factorValidationResults;
8 private $isSessionUpgrade;
10 public function setFactorValidationResults(array $results) {
11 assert_instances_of($results, 'PhabricatorAuthFactorResult');
12 $this->factorValidationResults = $results;
13 return $this;
16 public function getFactorValidationResults() {
17 return $this->factorValidationResults;
20 public function setFactors(array $factors) {
21 assert_instances_of($factors, 'PhabricatorAuthFactorConfig');
22 $this->factors = $factors;
23 return $this;
26 public function getFactors() {
27 return $this->factors;
30 public function setCancelURI($cancel_uri) {
31 $this->cancelURI = $cancel_uri;
32 return $this;
35 public function getCancelURI() {
36 return $this->cancelURI;
39 public function setIsSessionUpgrade($is_upgrade) {
40 $this->isSessionUpgrade = $is_upgrade;
41 return $this;
44 public function getIsSessionUpgrade() {
45 return $this->isSessionUpgrade;