3 final class PhortuneMerchantDescriptionTransaction
4 extends PhortuneMerchantTransactionType
{
6 const TRANSACTIONTYPE
= 'merchant:description';
8 public function generateOldValue($object) {
9 return $object->getDescription();
12 public function applyInternalEffects($object, $value) {
13 $object->setDescription($value);
16 public function getTitle() {
18 '%s updated the merchant description.',
19 $this->renderAuthor());
22 public function getTitleForFeed() {
24 '%s updated the merchant description for %s.',
25 $this->renderAuthor(),
26 $this->renderObject());
29 public function hasChangeDetailView() {
33 public function getMailDiffSectionHeader() {
34 return pht('CHANGES TO MERCHANT DESCRIPTION');
37 public function newChangeDetailView() {
38 $viewer = $this->getViewer();
40 return id(new PhabricatorApplicationTransactionTextDiffDetailView())
42 ->setOldText($this->getOldValue())
43 ->setNewText($this->getNewValue());
46 public function newRemarkupChanges() {
49 $changes[] = $this->newRemarkupChange()
50 ->setOldValue($this->getOldValue())
51 ->setNewValue($this->getNewValue());