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}

Branches

Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once. Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

{main}
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;