<?php

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


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

class ListsRateLogs extends AbstractListRecord
{

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

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


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