<?php

namespace App\Classes\Modules\Vouchers\Services;


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

class FetchesVoucher extends AbstractFetchRecord
{

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


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


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