| Total Complexity | 10 |
| Total Lines | 81 |
| Duplicated Lines | 0 % |
| Coverage | 91.3% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class DocumentFactory extends BaseFactory |
||
| 10 | { |
||
| 11 | use HasData; |
||
|
|
|||
| 12 | use HasErrors; |
||
| 13 | use HasLinks; |
||
| 14 | use HasMeta; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Undocumented variable |
||
| 18 | * |
||
| 19 | * @var CollectionFactory |
||
| 20 | */ |
||
| 21 | public $included; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Undocumented variable |
||
| 25 | * |
||
| 26 | * @var JsonapiFactory |
||
| 27 | */ |
||
| 28 | public $jsonapi; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Undocumented function |
||
| 32 | * |
||
| 33 | * @param CollectionFactory $included |
||
| 34 | * @return static |
||
| 35 | */ |
||
| 36 | 2 | public function setIncluded($included) |
|
| 37 | { |
||
| 38 | 2 | $this->included = $included; |
|
| 39 | |||
| 40 | 2 | return $this; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Undocumented function |
||
| 45 | * |
||
| 46 | * @param JsonapiFactory $jsonapi |
||
| 47 | * @return static |
||
| 48 | */ |
||
| 49 | 3 | public function setJsonapi($jsonapi) |
|
| 54 | } |
||
| 55 | |||
| 56 | 2 | public function toArray(): array |
|
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Undocumented function |
||
| 84 | * |
||
| 85 | * @return static |
||
| 86 | */ |
||
| 87 | public function fake() |
||
| 90 | } |
||
| 91 | } |
||
| 92 |