Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait HasRelationships |
||
8 | { |
||
9 | /** |
||
10 | * Undocumented variable |
||
11 | * |
||
12 | * @var array<string, RelationshipFactory> |
||
13 | */ |
||
14 | public $relationships; |
||
15 | |||
16 | /** |
||
17 | * Undocumented function |
||
18 | * |
||
19 | * @param string $name |
||
20 | * @param RelationshipFactory $relationship |
||
21 | * |
||
22 | * @return static |
||
23 | */ |
||
24 | 8 | public function addRelationship(string $name, $relationship) |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Undocumented function |
||
33 | * |
||
34 | * @param integer $count |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | 5 | public function fakeRelationships($count = 2) |
|
52 |