Passed
Push — master ( 229462...d74785 )
by Andreas
02:20 queued 14s
created

Migrator::executeMigration()   B

Complexity

Conditions 7
Paths 64

Size

Total Lines 49
Code Lines 23

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 23
CRAP Score 7

Importance

Changes 0
Metric Value
cc 7
eloc 23
nc 64
nop 3
dl 0
loc 49
ccs 23
cts 23
cp 1
crap 7
rs 8.6186
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations;
6
7
use Doctrine\Migrations\Metadata\MigrationPlanList;
8
9
/**
10
 * The DbalMigrator class is responsible for generating and executing the SQL for a migration.
11
 *
12
 * @internal
13
 */
14
interface Migrator
15
{
16
    /**
17
     * @return array<string, string[]> A list of SQL statements executed, grouped by migration version
18
     */
19
    public function migrate(MigrationPlanList $migrationsPlan, MigratorConfiguration $migratorConfiguration) : array;
20
}
21