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