<?php

namespace App\Classes\Modules\Currencies\Services;


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

class FetchesCurrency extends AbstractFetchRecord
{

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


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


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