Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
26 | 1 | public static function create(array $data): self |
|
27 | { |
||
28 | 1 | $model = new self(); |
|
29 | 1 | $model->id = $data['id'] ?? null; |
|
30 | 1 | $model->createdAt = $data['created_at'] ?? null; |
|
31 | 1 | $model->downloadUrl = ValidationStatusDownloadUrl::create($data['download_url']); |
|
32 | 1 | $model->id = $data['id'] ?? null; |
|
33 | 1 | $model->quantity = $data['quantity'] ?? 0; |
|
34 | 1 | $model->recordsProcessed = $data['records_processed'] ?? null; |
|
35 | 1 | $model->status = $data['status'] ?? null; |
|
36 | 1 | $model->summary = ValidationStatusSummary::create($data['summary'] ?? []); |
|
37 | |||
38 | 1 | return $model; |
|
39 | } |
||
40 | |||
80 |