Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / nuance / xaction / NuanceItemPropertyTransaction.php
blob3367a6a0cfeb3a5f9d32812ca0768f341bf5291a
1 <?php
3 final class NuanceItemPropertyTransaction
4 extends NuanceItemTransactionType {
6 const TRANSACTIONTYPE = 'nuance.item.property';
8 public function generateOldValue($object) {
9 $property_key = NuanceItemTransaction::PROPERTY_KEY;
10 $key = $this->getMetadataValue($property_key);
11 return $object->getItemProperty($key);
14 public function applyInternalEffects($object, $value) {
15 $property_key = NuanceItemTransaction::PROPERTY_KEY;
16 $key = $this->getMetadataValue($property_key);
18 $object->setItemProperty($key, $value);
21 public function getTitle() {
22 return pht(
23 '%s set a property on this item.',
24 $this->renderAuthor());