Перевод на DDD
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user