Passed
Push — master ( aa8594...807ffb )
by Wilmer
04:03
created

TableSchema::compositeForeignKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Sqlite;
6
7
use Yiisoft\Db\Schema\AbstractTableSchema;
8
9
/**
10
 * Implements the SQLite Server specific table schema.
11
 */
12
final class TableSchema extends AbstractTableSchema
13
{
14
    /**
15
     * @deprecated will be removed in version 2.0.0
16
     */
17
    public function compositeForeignKey(int $id, string $from, string $to): void
18
    {
19
        $this->foreignKeys[$id][$from] = $to;
20
    }
21
}
22