Перевод на доменную архитектуру
This commit is contained in:
21
app/Domain/Reports/Models/ReportContext.php
Normal file
21
app/Domain/Reports/Models/ReportContext.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Reports\Models;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
final readonly class ReportContext
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $metadata
|
||||
*/
|
||||
public function __construct(
|
||||
public int $departmentId,
|
||||
public int $userId,
|
||||
public ?int $actorUserId,
|
||||
public DateTimeImmutable $periodStart,
|
||||
public DateTimeImmutable $periodEnd,
|
||||
public string $reportType = 'daily',
|
||||
public array $metadata = [],
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user