3 abstract class PhabricatorEditEngineMFAEngine
9 public function setObject(PhabricatorEditEngineMFAInterface
$object) {
10 $this->object = $object;
14 public function getObject() {
18 public function setViewer(PhabricatorUser
$viewer) {
19 $this->viewer
= $viewer;
23 public function getViewer() {
25 throw new PhutilInvalidStateException('setViewer');
31 final public static function newEngineForObject(
32 PhabricatorEditEngineMFAInterface
$object) {
33 return $object->newEditEngineMFAEngine()
38 * Do edits to this object REQUIRE that the user submit MFA?
40 * This is a strict requirement: users will need to add MFA to their accounts
41 * if they don't already have it.
43 * @return bool True to strictly require MFA.
45 public function shouldRequireMFA() {
50 * Should edits to this object prompt for MFA if it's available?
52 * This is advisory: users without MFA on their accounts will be able to
53 * perform edits without being required to add MFA.
55 * @return bool True to prompt for MFA if available.
57 public function shouldTryMFA() {