Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/factor/PhabricatorAuthFactorResult.php
| <?php | <?php | ||||
| final class PhabricatorAuthFactorResult | final class PhabricatorAuthFactorResult | ||||
| extends Phobject { | extends Phobject { | ||||
| private $answeredChallenge; | private $answeredChallenge; | ||||
| private $isWait = false; | private $isWait = false; | ||||
| private $isError = false; | |||||
| private $isContinue = false; | |||||
| private $errorMessage; | private $errorMessage; | ||||
| private $value; | private $value; | ||||
| private $issuedChallenges = array(); | private $issuedChallenges = array(); | ||||
| public function setAnsweredChallenge(PhabricatorAuthChallenge $challenge) { | public function setAnsweredChallenge(PhabricatorAuthChallenge $challenge) { | ||||
| if (!$challenge->getIsAnsweredChallenge()) { | if (!$challenge->getIsAnsweredChallenge()) { | ||||
| throw new PhutilInvalidStateException('markChallengeAsAnswered'); | throw new PhutilInvalidStateException('markChallengeAsAnswered'); | ||||
| } | } | ||||
| Show All 23 Lines | public function setIsWait($is_wait) { | ||||
| $this->isWait = $is_wait; | $this->isWait = $is_wait; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getIsWait() { | public function getIsWait() { | ||||
| return $this->isWait; | return $this->isWait; | ||||
| } | } | ||||
| public function setIsError($is_error) { | |||||
| $this->isError = $is_error; | |||||
| return $this; | |||||
| } | |||||
| public function getIsError() { | |||||
| return $this->isError; | |||||
| } | |||||
| public function setIsContinue($is_continue) { | |||||
| $this->isContinue = $is_continue; | |||||
| return $this; | |||||
| } | |||||
| public function getIsContinue() { | |||||
| return $this->isContinue; | |||||
| } | |||||
| public function setErrorMessage($error_message) { | public function setErrorMessage($error_message) { | ||||
| $this->errorMessage = $error_message; | $this->errorMessage = $error_message; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getErrorMessage() { | public function getErrorMessage() { | ||||
| return $this->errorMessage; | return $this->errorMessage; | ||||
| } | } | ||||
| Show All 21 Lines | |||||