<?php

namespace App\Classes\Modules\Schedules\Services;


use App\Classes\General\Eloquent\AbstractFetchRecord;
use Illuminate\Database\Eloquent\Builder;
use App\Models\Schedule;

class FetchesSchedule extends AbstractFetchRecord
{

    /** @var Schedule */
    private $repository;

    /**
     * FetchesSchedule constructor.
     * @param Schedule $repository
     */
    public function __construct(Schedule $repository)
    {
        $this->repository = $repository;
    }


    /**
     * @return Builder
     */
    public function getRepository(): Builder
    {
        return $this->repository->newQuery();
    }
}
