Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace App\Shared\Domain\Port\Driven;
4
5use App\Shared\Domain\Exception\TransactionProviderException;
6
7interface TransactionProvider
8{
9    /**
10     * Execute $callback in a transaction
11     * Rollback is triggered if an exception occurs
12     * @param callable(): mixed $callback
13     * @return mixed
14     * @throws TransactionProviderException
15     */
16    public function transactional(callable $callback): mixed;
17}