Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/phid/PhabricatorAuthPHIDTypeAuthFactor.php
<?php | <?php | ||||
final class PhabricatorAuthPHIDTypeAuthFactor extends PhabricatorPHIDType { | final class PhabricatorAuthPHIDTypeAuthFactor extends PhabricatorPHIDType { | ||||
const TYPECONST = 'AFTR'; | const TYPECONST = 'AFTR'; | ||||
public function getTypeConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Auth Factor'); | return pht('Auth Factor'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorAuthFactorConfig(); | return new PhabricatorAuthFactorConfig(); | ||||
} | } | ||||
Show All 21 Lines |