Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/phid/PhabricatorAuthChallengePHIDType.php
<?php | <?php | ||||
final class PhabricatorAuthChallengePHIDType extends PhabricatorPHIDType { | final class PhabricatorAuthChallengePHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'CHAL'; | const TYPECONST = 'CHAL'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Auth Challenge'); | return pht('Auth Challenge'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorAuthChallenge(); | return new PhabricatorAuthChallenge(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | public function getPHIDTypeApplicationClass() { | ||||
return 'PhabricatorAuthApplication'; | return PhabricatorAuthApplication::class; | ||||
} | } | ||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return new PhabricatorAuthChallengeQuery(); | return new PhabricatorAuthChallengeQuery(); | ||||
} | } | ||||
public function loadHandles( | public function loadHandles( | ||||
PhabricatorHandleQuery $query, | PhabricatorHandleQuery $query, | ||||
array $handles, | array $handles, | ||||
array $objects) { | array $objects) { | ||||
return; | return; | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0