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.
22 lines
720 B
22 lines
720 B
<?php
|
|
|
|
namespace App\Domains\Admission\Actions\IntakeScheduling;
|
|
|
|
use App\Domains\Admission\DTOs\IntakeScheduling\PublishAdmissionScheduleDTO;
|
|
use App\Domains\Admission\Models\AdmissionSchedule;
|
|
|
|
class PublishAdmissionSchedule
|
|
{
|
|
public function execute(PublishAdmissionScheduleDTO $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' => $dto->status,
|
|
'term_id' => $dto->termId,
|
|
'admission_track_id' => $dto->admissionTrackId,
|
|
]);
|
|
}
|
|
}
|
|
|