Issues (33)

src/OperationInterface.php (1 issue)

1
<?php
0 ignored issues
show
Header blocks must be separated by a single blank line
Loading history...
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
namespace Johmanx10\Transaction;
8
9
interface OperationInterface
10
{
11
    /**
12
     * Execute the operation.
13
     *
14
     * @return void
15
     */
16
    public function __invoke(): void;
17
18
    /**
19
     * Apply the rollback mechanism.
20
     *
21
     * @return void
22
     */
23
    public function rollback(): void;
24
}
25