Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class RelationshipFactory extends BaseFactory |
||
17 | { |
||
18 | /** |
||
19 | * The factory generator |
||
20 | * |
||
21 | * @var GeneratorContract |
||
22 | */ |
||
23 | protected $generator; |
||
24 | |||
25 | /** |
||
26 | * @param ResourceIdentifierContract|CollectionContract|Model|Collection|null $data |
||
27 | * @param string|null $resourceType |
||
28 | * |
||
29 | * @return static |
||
30 | * @throws JsonApiFakerException |
||
31 | */ |
||
32 | 21 | public function setData($data, string $resourceType = null) |
|
46 |