<?php

namespace App\Classes\Modules\Vouchers\Services;


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

class ListsVoucherCampaigns extends AbstractListRecord
{

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

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


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