<?php

namespace App\Classes\Modules\Vouchers\Services;


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

class FetchesVoucherRedemption extends AbstractFetchRecord
{

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


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


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