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

SchemaDiffProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 28
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 4
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Provider;
6
7
use Doctrine\DBAL\Schema\Schema;
8
9
/**
10
 * The SchemaDiffProvider defines the interface used to provide the from and to schemas and to produce
11
 * the SQL queries needed to migrate.
12
 *
13
 * @internal
14
 */
15
interface SchemaDiffProvider
16
{
17
    public function createFromSchema() : Schema;
18
19
    public function createToSchema(Schema $fromSchema) : Schema;
20
21
    /** @return string[] */
22
    public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema) : array;
23
}
24