Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / auth / xaction / PhabricatorAuthFactorProviderEnrollMessageTransaction.php
blobd6d26143c12da2dea817dfae444017ef56c709d8
1 <?php
3 final class PhabricatorAuthFactorProviderEnrollMessageTransaction
4 extends PhabricatorAuthFactorProviderTransactionType {
6 const TRANSACTIONTYPE = 'enroll-message';
8 public function generateOldValue($object) {
9 return $object->getEnrollMessage();
12 public function applyInternalEffects($object, $value) {
13 $object->setEnrollMessage($value);
16 public function getTitle() {
17 return pht(
18 '%s updated the enroll message.',
19 $this->renderAuthor());
22 public function hasChangeDetailView() {
23 return true;
26 public function getMailDiffSectionHeader() {
27 return pht('CHANGES TO ENROLL MESSAGE');
30 public function newChangeDetailView() {
31 $viewer = $this->getViewer();
33 return id(new PhabricatorApplicationTransactionTextDiffDetailView())
34 ->setViewer($viewer)
35 ->setOldText($this->getOldValue())
36 ->setNewText($this->getNewValue());