You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
643 B
19 lines
643 B
<?php
|
|
|
|
namespace App\Domains\Admission\Actions\IntakeScheduling;
|
|
|
|
use App\Domains\Admission\DTOs\IntakeScheduling\AdjustAdmissionScheduleDurationDTO;
|
|
use App\Domains\Admission\Models\AdmissionSchedule;
|
|
|
|
class AdjustAdmissionScheduleDuration
|
|
{
|
|
public function execute(AdmissionSchedule $admissionSchedule, AdjustAdmissionScheduleDurationDTO $dto): void
|
|
{
|
|
$admissionSchedule->update([
|
|
'date_start' => $dto->startData,
|
|
'date_end' => $dto->endData,
|
|
're_registration_date_start' => $dto->reRegisterStartData,
|
|
're_registration_date_end' => $dto->reRegisterEndData,
|
|
]);
|
|
}
|
|
}
|
|
|