Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / nuance / xaction / NuanceItemOwnerTransaction.php
blob381371c8f3c9aabae4a5ccba3ac9a275eddc62e8
1 <?php
3 final class NuanceItemOwnerTransaction
4 extends NuanceItemTransactionType {
6 const TRANSACTIONTYPE = 'nuance.item.owner';
8 public function generateOldValue($object) {
9 return $object->getOwnerPHID();
12 public function applyInternalEffects($object, $value) {
13 $object->setOwnerPHID($value);
16 public function getTitle() {
18 // TODO: Assign, unassign strings probably need variants.
20 return pht(
21 '%s reassigned this item from %s to %s.',
22 $this->renderAuthor(),
23 $this->renderHandle($this->getOldValue()),
24 $this->renderHandle($this->getNewValue()));