<?php

namespace App\Classes\Modules\Rewards\Services;


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

class ListsRewards extends AbstractListRecord
{

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

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


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