<?php


namespace App\Classes\Modules\Transactions\Services;

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

class ListsGroups extends AbstractListRecord
{
    /** @var Group */
    private $repository;

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

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