<?php

namespace App\Classes\Modules\Vouchers\Services;


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

class FetchesVoucherCampaign extends AbstractFetchRecord
{

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


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


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