Passed
Pull Request — master (#17)
by Aleksei
02:31
created

BelongsToMorphed   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 1
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Annotated\Annotation\Relation\Morphed;
6
7
final class BelongsToMorphed
8
{
9
    public function __construct(
10
        string $target,
11
        bool $cascade = true,
12
        bool $nullable = true,
13
        string $innerKey = '{relationName}_{outerKey}',
14
        string $outerKey = null,
15
        string $morphKey = '{relationName}_role',
16
        int $morphKeyLength = 32,
17
        bool $indexCreate = true,
18
        // Inverse $inverse = null, // can be uncommented for compatibility with php 8.1
19
    ) {
20
    }
21
}
22