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

Executor   A

Complexity

Total Complexity 36

Size/Duplication

Total Lines 365
Duplicated Lines 0 %

Test Coverage

Coverage 99.4%

Importance

Changes 0
Metric Value
eloc 157
dl 0
loc 365
ccs 165
cts 166
cp 0.994
rs 9.52
c 0
b 0
f 0
wmc 36
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