<?php


namespace App\Classes\Modules\Bookings\Services;

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

class ListsBookings extends AbstractListRecord
{
    /** @var Booking */
    private $repository;

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

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