Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / auth / xaction / PhabricatorAuthFactorProviderDuoUsernamesTransaction.php
blob8d9be1244f7f20f95620781e6fb74c22c4d4b943
1 <?php
3 final class PhabricatorAuthFactorProviderDuoUsernamesTransaction
4 extends PhabricatorAuthFactorProviderTransactionType {
6 const TRANSACTIONTYPE = 'duo.usernames';
8 public function generateOldValue($object) {
9 $key = PhabricatorDuoAuthFactor::PROP_USERNAMES;
10 return $object->getAuthFactorProviderProperty($key);
13 public function applyInternalEffects($object, $value) {
14 $key = PhabricatorDuoAuthFactor::PROP_USERNAMES;
15 $object->setAuthFactorProviderProperty($key, $value);
18 public function getTitle() {
19 return pht(
20 '%s changed the username policy for this provider from %s to %s.',
21 $this->renderAuthor(),
22 $this->renderOldValue(),
23 $this->renderNewValue());