Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace FileImporter\Interfaces; |
4 | |
5 | use StatusValue; |
6 | |
7 | /** |
8 | * @license GPL-2.0-or-later |
9 | * @author Addshore |
10 | */ |
11 | interface ImportOperation { |
12 | |
13 | /** |
14 | * Method to prepare an operation. This will not commit anything to any persistent storage. |
15 | * @return StatusValue isOK on success |
16 | */ |
17 | public function prepare(): StatusValue; |
18 | |
19 | /** |
20 | * Method to validate prepared data that should be committed. |
21 | * @return StatusValue isOK when validation succeeds |
22 | */ |
23 | public function validate(): StatusValue; |
24 | |
25 | /** |
26 | * Commit this operation to persistent storage. |
27 | * @return StatusValue isOK on success |
28 | */ |
29 | public function commit(): StatusValue; |
30 | |
31 | } |