|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace AlwaysOpen\OxylabsApi\DTOs\eBay; |
| 4 | + |
| 5 | +use AlwaysOpen\OxylabsApi\Traits\Renderable; |
| 6 | +use Illuminate\Support\Carbon; |
| 7 | +use Spatie\LaravelData\Attributes\WithCast; |
| 8 | +use Spatie\LaravelData\Casts\DateTimeInterfaceCast; |
| 9 | +use Spatie\LaravelData\Data; |
| 10 | + |
| 11 | +class eBayResult extends Data |
| 12 | +{ |
| 13 | + use Renderable; |
| 14 | + |
| 15 | + public function __construct( |
| 16 | + public readonly string $content, |
| 17 | + public readonly int $page, |
| 18 | + public readonly string $url, |
| 19 | + public readonly string $job_id, |
| 20 | + public readonly bool $is_render_forced, |
| 21 | + public readonly int $status_code, |
| 22 | + public readonly ?string $type = null, |
| 23 | + public readonly ?string $parser_type = null, |
| 24 | + #[WithCast(DateTimeInterfaceCast::class, format: ['Y-m-d H:i:s', 'Y-m-d\TH:i:s\+H:i', 'Y-m-d H:i:s.u'])] |
| 25 | + public readonly ?Carbon $created_at = null, |
| 26 | + #[WithCast(DateTimeInterfaceCast::class, format: ['Y-m-d H:i:s', 'Y-m-d\TH:i:s\+H:i', 'Y-m-d H:i:s.u'])] |
| 27 | + public readonly ?Carbon $updated_at = null, |
| 28 | + public readonly ?string $parser_preset = null, |
| 29 | + ) {} |
| 30 | +} |
0 commit comments