Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phortune / xaction / PhortuneMerchantInvoiceFooterTransaction.php
blob6d8f5841044c5e4b7d91cc4c5ba11ff66c85e8e9
1 <?php
3 final class PhortuneMerchantInvoiceFooterTransaction
4 extends PhortuneMerchantTransactionType {
6 const TRANSACTIONTYPE = 'merchant:invoicefooter';
8 public function generateOldValue($object) {
9 return $object->getInvoiceFooter();
12 public function applyInternalEffects($object, $value) {
13 $object->setInvoiceFooter($value);
16 public function getTitle() {
17 return pht(
18 '%s updated the merchant invoice footer.',
19 $this->renderAuthor());
22 public function getTitleForFeed() {
23 return pht(
24 '%s updated the merchant invoice footer for %s.',
25 $this->renderAuthor(),
26 $this->renderObject());
29 public function hasChangeDetailView() {
30 return true;
33 public function getMailDiffSectionHeader() {
34 return pht('CHANGES TO MERCHANT INVOICE FOOTER');
37 public function newChangeDetailView() {
38 $viewer = $this->getViewer();
40 return id(new PhabricatorApplicationTransactionTextDiffDetailView())
41 ->setViewer($viewer)
42 ->setOldText($this->getOldValue())
43 ->setNewText($this->getNewValue());
46 public function newRemarkupChanges() {
47 $changes = array();
49 $changes[] = $this->newRemarkupChange()
50 ->setOldValue($this->getOldValue())
51 ->setNewValue($this->getNewValue());
53 return $changes;