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

Executor::execute()   A

Complexity

Conditions 3
Paths 9

Size

Total Lines 44
Code Lines 27

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 27
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 27
nc 9
nop 4
dl 0
loc 44
ccs 27
cts 27
cp 1
crap 3
rs 9.488
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Version;
6
7
use Doctrine\Migrations\Metadata\MigrationPlan;
8
use Doctrine\Migrations\MigratorConfiguration;
9
10
/**
11
 * The Executor defines the interface used for adding sql for a migration and executing that sql.
12
 *
13
 * @internal
14
 */
15
interface Executor
16
{
17
    /**
18
     * @param mixed[] $params
19
     * @param mixed[] $types
20
     */
21
    public function addSql(string $sql, array $params = [], array $types = []) : void;
22
23
    public function execute(MigrationPlan $plan, MigratorConfiguration $migratorConfiguration) : ExecutionResult;
24
}
25