Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class ListResponse implements ResponseContract |
||
16 | { |
||
17 | /** |
||
18 | * @param array<int, RetrieveResponse> $data |
||
19 | */ |
||
20 | 1 | private function __construct( |
|
21 | public readonly array $data |
||
22 | ) { |
||
23 | 1 | } |
|
24 | |||
25 | /** |
||
26 | * Acts as static factory, and returns a new Response instance. |
||
27 | * |
||
28 | * @param array{data: array<int, array{event_id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>} $attributes |
||
|
|||
29 | */ |
||
30 | 1 | public static function from(array $attributes): self |
|
38 | 1 | ); |
|
39 | } |
||
41 |