| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class ListResponse implements ResponseContract |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param array<int, RetrieveResponse> $data |
||
| 17 | */ |
||
| 18 | 1 | private function __construct( |
|
| 19 | public readonly array $data, |
||
| 20 | ) { |
||
| 21 | 1 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Acts as static factory, and returns a new Response instance. |
||
| 25 | * |
||
| 26 | * @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 |
||
|
|
|||
| 27 | */ |
||
| 28 | 1 | public static function from(array $attributes): self |
|
| 36 | 1 | ); |
|
| 37 | } |
||
| 39 |