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.
23 lines
776 B
23 lines
776 B
<?php
|
|
|
|
namespace App\Domains\Admission\Actions\IntakeScheduling;
|
|
|
|
use App\Domains\Admission\DTOs\IntakeScheduling\DefineAdmissionScheduleDTO;
|
|
use App\Domains\Admission\Enums\AdmissionStatus;
|
|
use App\Domains\Admission\Models\AdmissionSchedule;
|
|
|
|
class DefineAdmissionSchedule
|
|
{
|
|
public function execute(DefineAdmissionScheduleDTO $dto): void
|
|
{
|
|
AdmissionSchedule::create([
|
|
'date_start' => $dto->startData,
|
|
'date_end' => $dto->endData,
|
|
're_registration_date_start' => $dto->reRegisterStartData,
|
|
're_registration_date_end' => $dto->reRegisterEndData,
|
|
'status' => AdmissionStatus::DRAFT,
|
|
'term_id' => $dto->termId,
|
|
'admission_track_id' => $dto->admissionTrackId,
|
|
]);
|
|
}
|
|
}
|
|
|