Перевод на доменную архитектуру

This commit is contained in:
brusnitsyn
2026-04-26 23:37:50 +09:00
parent 75ca01ffd8
commit f107ebd167
70 changed files with 4656 additions and 2070 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Domain\Reports\Models;
final readonly class PatientCollection
{
/**
* @param array<int, array<string, mixed>> $items
* @param array<string, mixed> $metadata
*/
public function __construct(
public array $items = [],
public array $metadata = [],
) {}
public function metadata(string $key, mixed $default = null): mixed
{
return $this->metadata[$key] ?? $default;
}
}