Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phortune / xaction / PhortuneMerchantDescriptionTransaction.php
blob34c94a6ea0c3484faffc2239fd0646243d74f9a4
1 <?php
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() {
17 return pht(
18 '%s updated the merchant description.',
19 $this->renderAuthor());
22 public function getTitleForFeed() {
23 return pht(
24 '%s updated the merchant description 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 DESCRIPTION');
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;