Differential D20266 Diff 48401 src/applications/maniphest/xaction/ManiphestTaskSubpriorityTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/xaction/ManiphestTaskSubpriorityTransaction.php
| <?php | <?php | ||||
| final class ManiphestTaskSubpriorityTransaction | final class ManiphestTaskSubpriorityTransaction | ||||
| extends ManiphestTaskTransactionType { | extends ManiphestTaskTransactionType { | ||||
| const TRANSACTIONTYPE = 'subpriority'; | const TRANSACTIONTYPE = 'subpriority'; | ||||
| public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
| return $object->getSubpriority(); | return null; | ||||
| } | } | ||||
| public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
| $object->setSubpriority($value); | // This transaction is obsolete, but we're keeping the class around so it | ||||
| // is hidden from timelines until we destroy the actual transaction data. | |||||
| throw new PhutilMethodNotImplementedException(); | |||||
| } | } | ||||
| public function shouldHide() { | public function shouldHide() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||