Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | #[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor] |
||
17 | class JoinedTable extends Inheritance |
||
18 | { |
||
19 | /** |
||
20 | * @param non-empty-string|null $outerKey Outer (parent) key name. |
||
|
|||
21 | * @param bool $fkCreate Set to true to automatically create FK on outerKey. |
||
22 | * @param non-empty-string|null $fkAction FK onDelete and onUpdate action. |
||
23 | */ |
||
24 | 144 | public function __construct( |
|
34 | 144 | } |
|
35 | |||
36 | 144 | public function getOuterKey(): ?string |
|
37 | { |
||
38 | 144 | return $this->outerKey; |
|
39 | } |
||
40 | |||
41 | 144 | public function isCreateFk(): bool |
|
42 | { |
||
43 | 144 | return $this->fkCreate; |
|
44 | } |
||
45 | |||
46 | 96 | public function getFkAction(): string |
|
49 | } |
||
50 | } |
||
51 |