<?php

namespace App\Classes\Modules\Countries\Services;


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

class FetchesCountry extends AbstractFetchRecord
{

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


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


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