| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait IsResource |
||
| 12 | { |
||
| 13 | 1 | use HasModel; |
|
| 14 | |||
| 15 | /** |
||
| 16 | * Class constructor. |
||
| 17 | * |
||
| 18 | * @param Model|null $model |
||
| 19 | * @param string|null $resourceType |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | * @throws JsonApiFakerException |
||
| 23 | */ |
||
| 24 | 60 | public function __construct($model = null, ?string $resourceType = null) |
|
| 28 | } |
||
| 29 | 60 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Set the model and the resource type. |
||
| 33 | * |
||
| 34 | * @param Model $model |
||
| 35 | * @param string $resourceType |
||
| 36 | * |
||
| 37 | * @return static |
||
| 38 | * @throws JsonApiFakerException |
||
| 39 | */ |
||
| 40 | 54 | public function setValues($model, string $resourceType) |
|
| 47 |