| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)] |
||
| 19 | #[NamedArgumentConstructor] |
||
| 20 | class ForeignKey |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @param non-empty-string $target Role or class name of the target entity. |
||
|
|
|||
| 24 | * @param list<non-empty-string>|non-empty-string|null $innerKey You don't need to specify this if the attribute |
||
| 25 | * is used on a property. |
||
| 26 | * @param list<non-empty-string>|non-empty-string|null $outerKey Outer key in the target entity. |
||
| 27 | * Defaults to the primary key. |
||
| 28 | * @param 'CASCADE'|'NO ACTION'|'SET null' $action |
||
| 29 | * @param bool $indexCreate Note: MySQL and MSSQL might create an index for the foreign key automatically. |
||
| 30 | */ |
||
| 31 | public function __construct( |
||
| 44 |