<?php

namespace App\Classes\Modules\Addresses\Services;


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

class FetchesDistrict extends AbstractFetchRecord
{

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

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


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