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 $isValid = false; | private $isValid = false; | ||||
private $hint; | private $isWait = false; | ||||
private $errorMessage; | |||||
private $value; | private $value; | ||||
private $issuedChallenges = array(); | |||||
public function setIsValid($is_valid) { | public function setIsValid($is_valid) { | ||||
$this->isValid = $is_valid; | $this->isValid = $is_valid; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getIsValid() { | public function getIsValid() { | ||||
return $this->isValid; | return $this->isValid; | ||||
} | } | ||||
public function setHint($hint) { | public function setIsWait($is_wait) { | ||||
$this->hint = $hint; | $this->isWait = $is_wait; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getHint() { | public function getIsWait() { | ||||
return $this->hint; | return $this->isWait; | ||||
} | |||||
public function setErrorMessage($error_message) { | |||||
$this->errorMessage = $error_message; | |||||
return $this; | |||||
} | |||||
public function getErrorMessage() { | |||||
return $this->errorMessage; | |||||
} | } | ||||
public function setValue($value) { | public function setValue($value) { | ||||
$this->value = $value; | $this->value = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getValue() { | public function getValue() { | ||||
return $this->value; | return $this->value; | ||||
} | } | ||||
public function setIssuedChallenges(array $issued_challenges) { | |||||
assert_instances_of($issued_challenges, 'PhabricatorAuthChallenge'); | |||||
$this->issuedChallenges = $issued_challenges; | |||||
return $this; | |||||
} | |||||
public function getIssuedChallenges() { | |||||
return $this->issuedChallenges; | |||||
} | |||||
} | } |