<?php

namespace App\Classes\Modules\Currencies\Services\Rates;


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

class FetchesRate extends AbstractFetchRecord
{

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

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


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