Issues (33)

src/Exception/FailedRollbackExceptionInterface.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\Exception;
8
9
use Johmanx10\Transaction\OperationFailureInterface;
10
use Johmanx10\Transaction\OperationInterface;
11
use Throwable;
12
13
interface FailedRollbackExceptionInterface extends Throwable
14
{
15
    /**
16
     * Get the operation for which the rollback failed.
17
     *
18
     * @return OperationInterface
19
     */
20
    public function getOperation(): OperationInterface;
21
22
    /**
23
     * Get the rollbacks that succeeded before the current failure.
24
     *
25
     * @return OperationFailureInterface[]
26
     */
27
    public function getPreviousRollbacks(): array;
28
}
29