Page MenuHomec4science

PhortuneMerchantDescriptionTransaction.php
No OneTemporary

File Metadata

Created
Thu, Nov 7, 11:54

PhortuneMerchantDescriptionTransaction.php

<?php
final class PhortuneMerchantDescriptionTransaction
extends PhortuneMerchantTransactionType {
const TRANSACTIONTYPE = 'merchant:description';
public function generateOldValue($object) {
return $object->getDescription();
}
public function applyInternalEffects($object, $value) {
$object->setDescription($value);
}
public function getTitle() {
return pht(
'%s updated the merchant description.',
$this->renderAuthor());
}
public function getTitleForFeed() {
return pht(
'%s updated the merchant description for %s.',
$this->renderAuthor(),
$this->renderObject());
}
public function hasChangeDetailView() {
return true;
}
public function getMailDiffSectionHeader() {
return pht('CHANGES TO MERCHANT DESCRIPTION');
}
public function newChangeDetailView() {
$viewer = $this->getViewer();
return id(new PhabricatorApplicationTransactionTextDiffDetailView())
->setViewer($viewer)
->setOldText($this->getOldValue())
->setNewText($this->getNewValue());
}
public function newRemarkupChanges() {
$changes = array();
$changes[] = $this->newRemarkupChange()
->setOldValue($this->getOldValue())
->setNewValue($this->getNewValue());
return $changes;
}
}

Event Timeline