Test Failed
Pull Request — dev (#102)
by Def
13:52 queued 09:52
created

TableSchema::foreignKeys()   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
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Sqlite;
6
7
use Yiisoft\Db\Schema\TableSchema as AbstractTableSchema;
8
9
final class TableSchema extends AbstractTableSchema
10
{
11
    public function compositeFK(int $id, string $from, string $to): void
12
    {
13
        $this->foreignKeys[$id][$from] = $to;
0 ignored issues
show
Bug Best Practice introduced by
The property foreignKeys does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
14
    }
15
}
16