Differential D19979 Diff 47718 src/applications/phortune/xaction/PhortuneAccountBillingAddressTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/xaction/PhortuneAccountBillingAddressTransaction.php
- This file was added.
<?php | |||||
final class PhortuneAccountBillingAddressTransaction | |||||
extends PhortuneAccountTransactionType { | |||||
const TRANSACTIONTYPE = 'billing-address'; | |||||
public function generateOldValue($object) { | |||||
return $object->getBillingAddress(); | |||||
} | |||||
public function applyInternalEffects($object, $value) { | |||||
$object->setBillingAddress($value); | |||||
} | |||||
public function getTitle() { | |||||
return pht( | |||||
'%s updated the account billing address.', | |||||
$this->renderAuthor()); | |||||
} | |||||
public function hasChangeDetailView() { | |||||
return true; | |||||
} | |||||
public function getMailDiffSectionHeader() { | |||||
return pht('CHANGES TO BILLING ADDRESS'); | |||||
} | |||||
public function newChangeDetailView() { | |||||
$viewer = $this->getViewer(); | |||||
return id(new PhabricatorApplicationTransactionTextDiffDetailView()) | |||||
->setViewer($viewer) | |||||
->setOldText($this->getOldValue()) | |||||
->setNewText($this->getNewValue()); | |||||
} | |||||
} |