Differential D9985 Diff 24031 src/applications/oauthserver/phid/PhabricatorOAuthServerPHIDTypeClientAuthorization.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/phid/PhabricatorOAuthServerPHIDTypeClientAuthorization.php
<?php | <?php | ||||
final class PhabricatorOAuthServerPHIDTypeClientAuthorization | final class PhabricatorOAuthServerPHIDTypeClientAuthorization | ||||
extends PhabricatorPHIDType { | extends PhabricatorPHIDType { | ||||
const TYPECONST = 'OASA'; | const TYPECONST = 'OASA'; | ||||
public function getTypeConstant() { | |||||
return self::TYPECONST; | |||||
} | |||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('OAuth Authorization'); | return pht('OAuth Authorization'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorOAuthClientAuthorization(); | return new PhabricatorOAuthClientAuthorization(); | ||||
} | } | ||||
Show All 20 Lines |