| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class RelationshipFactory extends BaseFactory implements RelationshipContract |
||
| 15 | { |
||
| 16 | 1 | use HasData; |
|
| 17 | 1 | use HasLinks; |
|
| 18 | 1 | use HasMeta; |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | 33 | public function toArray(): array |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Fill the relationship with fake values ("data", "meta" and "links"). |
||
| 41 | * |
||
| 42 | * @param integer $options |
||
| 43 | * @param integer $count In case of collection, it represents the number of resource identifier to generate |
||
| 44 | * |
||
| 45 | * @return static |
||
| 46 | * @throws JsonApiFakerException |
||
| 47 | */ |
||
| 48 | 21 | public function fake($options = 0, $count = 5) |
|
| 61 |