<?php

namespace App\Classes\Modules\Schedules\Services;


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

class ListsSchedules extends AbstractListRecord
{

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

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


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