Перевод на DDD

This commit is contained in:
brusnitsyn
2026-07-31 17:19:03 +09:00
parent 2dd55b9d11
commit 2c6d4a04cc
48 changed files with 1796 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Domain\ReportDuty\Actions;
use App\Domain\ReportDuty\Contracts\ReportDutyObservablePatientsInterface;
use App\Domain\ReportDuty\Models\ReportDuty;
class SaveObservablePatientsAction
{
public function __construct(
protected ReportDutyObservablePatientsInterface $observablePatients
) {}
public function execute(ReportDuty $report, array $observables): void
{
$this->observablePatients->upsertObservations($report, $observables);
}
}