StocksNew/Modules/Recruit/app/Repositories/InterviewScheduleRepository.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

36 lines
856 B
PHP

<?php
namespace Modules\Recruit\Repositories;
use Modules\Recruit\Models\InterviewSchedule;
class InterviewScheduleRepository implements InterviewScheduleInterface
{
public function findAll()
{
return InterviewSchedule::get();
}
public function getInterviewScheduleById($interviewScheduleId)
{
return InterviewSchedule::findOrFail($interviewScheduleId);
}
public function delete($interviewScheduleId)
{
InterviewSchedule::destroy($interviewScheduleId);
}
public function create(array $interviewScheduleDetails)
{
return InterviewSchedule::create($interviewScheduleDetails);
}
public function update($interviewScheduleId, array $newDetails)
{
return InterviewSchedule::where('interview_schedule_id', $interviewScheduleId)->update($newDetails);
}
}