Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phortune / xaction / PhortuneAccountEmailRotateTransaction.php
blobe885b2d67b62e62f8d969ee06976d8354d22dd10
1 <?php
3 final class PhortuneAccountEmailRotateTransaction
4 extends PhortuneAccountEmailTransactionType {
6 const TRANSACTIONTYPE = 'rotate';
8 public function generateOldValue($object) {
9 return false;
12 public function applyInternalEffects($object, $value) {
13 $access_key = Filesystem::readRandomCharacters(16);
14 $object->setAccessKey($access_key);
17 public function getTitle() {
18 return pht(
19 '%s rotated the access key for this email address.',
20 $this->renderAuthor());