1 | <?php |
||
9 | trait ApiTransactionTrait |
||
10 | { |
||
11 | /** |
||
12 | * @param Request $request |
||
13 | * @return mixed |
||
14 | */ |
||
15 | abstract function dispatch(Request $request); |
||
16 | |||
17 | /** |
||
18 | * @override |
||
19 | * @inheritDoc |
||
20 | */ |
||
21 | public function discard() |
||
27 | |||
28 | /** |
||
29 | * @override |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | public function exec() |
||
38 | |||
39 | /** |
||
40 | * @override |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | public function multi() |
||
49 | |||
50 | /** |
||
51 | * @override |
||
52 | * @inheritDoc |
||
53 | */ |
||
54 | public function unWatch() |
||
60 | |||
61 | /** |
||
62 | * @override |
||
63 | * @inheritDoc |
||
64 | */ |
||
65 | public function watch($key, ...$keys) |
||
73 | } |
||
74 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.