-
-
Notifications
You must be signed in to change notification settings - Fork 636
Expand file tree
/
Copy pathEventStatsResponseDTO.php
More file actions
32 lines (27 loc) · 1.22 KB
/
EventStatsResponseDTO.php
File metadata and controls
32 lines (27 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace HiEvents\Services\Application\Handlers\Event\DTO;
use HiEvents\DataTransferObjects\Attributes\CollectionOf;
use HiEvents\DataTransferObjects\BaseDTO;
use HiEvents\Services\Domain\Event\DTO\EventCheckInStatsResponseDTO;
use HiEvents\Services\Domain\Event\DTO\EventDailyStatsResponseDTO;
use Illuminate\Support\Collection;
class EventStatsResponseDTO extends BaseDTO
{
public function __construct(
#[CollectionOf(EventDailyStatsResponseDTO::class)]
public readonly Collection $daily_stats,
public readonly string $start_date,
public readonly string $end_date,
public int $total_products_sold,
public int $total_attendees_registered,
public int $total_orders,
public float $total_gross_sales,
public float $total_fees,
public float $total_tax,
public float $total_views,
public float $total_refunded,
public int $total_external_registration_clicks,
)
{
}
}