36 lines
856 B
PHP
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);
|
|
}
|
|
|
|
}
|