<?php

namespace App\Classes\Modules\Rewards\Services;


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

class ListsUserRewards extends AbstractListRecord
{

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

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


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