Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/phid/PhabricatorAuthPasswordPHIDType.php
<?php | <?php | ||||
final class PhabricatorAuthPasswordPHIDType extends PhabricatorPHIDType { | final class PhabricatorAuthPasswordPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'APAS'; | const TYPECONST = 'APAS'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Auth Password'); | return pht('Auth Password'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorAuthPassword(); | return new PhabricatorAuthPassword(); | ||||
} | } | ||||
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 id(new PhabricatorAuthPasswordQuery()) | return id(new PhabricatorAuthPasswordQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 12 Lines |
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