<?php

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


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

class ListsRates extends AbstractListRecord
{

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

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


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