Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
21 | 7 | public function addForeignKey(string $localAlias, string $remoteRecord, string $localEntryKey, string $remoteEntryKey): void |
|
22 | { |
||
23 | 7 | $this->initClassFks(); |
|
24 | 7 | $foreignKeyClass = clone $this->foreignKeyClass; |
|
25 | 7 | $this->foreignKeys[$localAlias] = $foreignKeyClass->setData($localAlias, $remoteRecord, $localEntryKey, $remoteEntryKey); |
|
26 | } |
||
43 |