Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthFactorProvider.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | public function getAuthFactorProviderProperty($key, $default = null) { | ||||
return idx($this->properties, $key, $default); | return idx($this->properties, $key, $default); | ||||
} | } | ||||
public function setAuthFactorProviderProperty($key, $value) { | public function setAuthFactorProviderProperty($key, $value) { | ||||
$this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getEnrollMessage() { | |||||
return $this->getAuthFactorProviderProperty('enroll-message'); | |||||
} | |||||
public function setEnrollMessage($message) { | |||||
return $this->setAuthFactorProviderProperty('enroll-message', $message); | |||||
} | |||||
public function attachFactor(PhabricatorAuthFactor $factor) { | public function attachFactor(PhabricatorAuthFactor $factor) { | ||||
$this->factor = $factor; | $this->factor = $factor; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getFactor() { | public function getFactor() { | ||||
return $this->assertAttached($this->factor); | return $this->assertAttached($this->factor); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |