Differential D14068 Diff 34725 src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
<?php | <?php | ||||
final class PhabricatorOAuthServerClientPHIDType extends PhabricatorPHIDType { | final class PhabricatorOAuthServerClientPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'OASC'; | const TYPECONST = 'OASC'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('OAuth Application'); | return pht('OAuth Application'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorOAuthServerClient(); | return new PhabricatorOAuthServerClient(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorOAuthServerApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorOAuthServerClientQuery()) | return id(new PhabricatorOAuthServerClientQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 13 Lines |