@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
3/**
4 * Allow infrastructure to apply transactions to the implementing object.
5 *
6 * For example, implementing this interface allows Subscriptions to apply CC
7 * transactions, and allows Harbormaster to apply build result notifications.
8 */
9interface PhabricatorApplicationTransactionInterface {
10
11 /**
12 * Return a @{class:PhabricatorApplicationTransactionEditor} which can be
13 * used to apply transactions to this object.
14 *
15 * @return PhabricatorApplicationTransactionEditor Editor for this object.
16 */
17 public function getApplicationTransactionEditor();
18
19
20 /**
21 * Return a template transaction for this object.
22 *
23 * @return PhabricatorApplicationTransaction
24 */
25 public function getApplicationTransactionTemplate();
26
27}
28
29// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////
30
31
32/* -( PhabricatorApplicationTransactionInterface )------------------------- */
33/*
34
35 public function getApplicationTransactionEditor() {
36 return new <<<???>>>Editor();
37 }
38
39 public function getApplicationTransactionTemplate() {
40 return new <<<???>>>Transaction();
41 }
42
43*/