mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
8374ec46fd
Summary: Ref T12738. Implements some modular behavior for Nuance commands. Test Plan: {F4975322} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12738 Differential Revision: https://secure.phabricator.com/D18011
25 lines
520 B
PHP
25 lines
520 B
PHP
<?php
|
|
|
|
final class NuanceItemStatusTransaction
|
|
extends NuanceItemTransactionType {
|
|
|
|
const TRANSACTIONTYPE = 'nuance.item.status';
|
|
|
|
public function generateOldValue($object) {
|
|
return $object->getStatus();
|
|
}
|
|
|
|
public function applyInternalEffects($object, $value) {
|
|
$object->setStatus($value);
|
|
}
|
|
|
|
public function getTitle() {
|
|
return pht(
|
|
'%s changed the status of this item from %s to %s.',
|
|
$this->renderAuthor(),
|
|
$this->renderOldValue(),
|
|
$this->renderNewValue());
|
|
}
|
|
|
|
|
|
}
|