Differential D21015 Diff 50078 src/applications/people/storage/PhabricatorExternalAccountIdentifier.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorExternalAccountIdentifier.php
<?php | <?php | ||||
final class PhabricatorExternalAccountIdentifier | final class PhabricatorExternalAccountIdentifier | ||||
extends PhabricatorUserDAO | extends PhabricatorUserDAO | ||||
implements PhabricatorPolicyInterface { | implements | ||||
PhabricatorPolicyInterface, | |||||
PhabricatorDestructibleInterface { | |||||
protected $externalAccountPHID; | protected $externalAccountPHID; | ||||
protected $providerConfigPHID; | protected $providerConfigPHID; | ||||
protected $identifierHash; | protected $identifierHash; | ||||
protected $identifierRaw; | protected $identifierRaw; | ||||
public function getPHIDType() { | public function getPHIDType() { | ||||
return PhabricatorPeopleExternalIdentifierPHIDType::TYPECONST; | return PhabricatorPeopleExternalIdentifierPHIDType::TYPECONST; | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | switch ($capability) { | ||||
return PhabricatorPolicies::POLICY_NOONE; | return PhabricatorPolicies::POLICY_NOONE; | ||||
} | } | ||||
} | } | ||||
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | ||||
return false; | return false; | ||||
} | } | ||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */ | |||||
public function destroyObjectPermanently( | |||||
PhabricatorDestructionEngine $engine) { | |||||
$this->delete(); | |||||
} | |||||
} | } |