Issues (33)

src/Exception/OperationExceptionInterface.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\OperationInterface;
10
use Throwable;
11
12
interface OperationExceptionInterface extends Throwable
13
{
14
    /**
15
     * Get the operation that caused the exception to occur.
16
     * Returns null if the operation cannot be determined.
17
     *
18
     * @return OperationInterface|null
19
     */
20
    public function getOperation(): ?OperationInterface;
21
}
22