@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorTransactionChange extends Phobject {
4
5 private $transaction;
6 private $metadata = array();
7 private $oldValue;
8 private $newValue;
9
10 final public function setTransaction(
11 PhabricatorApplicationTransaction $xaction) {
12 $this->transaction = $xaction;
13 return $this;
14 }
15
16 final public function getTransaction() {
17 return $this->transaction;
18 }
19
20 final public function setOldValue($old_value) {
21 $this->oldValue = $old_value;
22 return $this;
23 }
24
25 final public function getOldValue() {
26 return $this->oldValue;
27 }
28
29 final public function setNewValue($new_value) {
30 $this->newValue = $new_value;
31 return $this;
32 }
33
34 final public function getNewValue() {
35 return $this->newValue;
36 }
37
38 final public function setMetadata(array $metadata) {
39 $this->metadata = $metadata;
40 return $this;
41 }
42
43 final public function getMetadata() {
44 return $this->metadata;
45 }
46
47}