<?php


namespace App\Classes\Modules\Transactions\Services;

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

class FetchesBillGroup extends AbstractFetchRecord
{
    /** @var BillGroup */
    private $repository;

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

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