<?php

namespace App\Classes\Modules\Bookings\Services;


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

class FetchesBooking extends AbstractFetchRecord
{

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

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


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

}