| 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 | 2 | public function discard() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @override |
||
| 30 | * @inheritDoc |
||
| 31 | */ |
||
| 32 | 1 | public function exec() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @override |
||
| 41 | * @inheritDoc |
||
| 42 | */ |
||
| 43 | 3 | public function multi() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @override |
||
| 52 | * @inheritDoc |
||
| 53 | */ |
||
| 54 | 1 | public function unWatch() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @override |
||
| 63 | * @inheritDoc |
||
| 64 | */ |
||
| 65 | 2 | 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.