<?php

namespace App\Classes\Modules\Rewards\Services;


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

class FetchesReward extends AbstractFetchRecord
{

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


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


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