<?php

namespace App\Classes\Modules\Addresses\Services;


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

class ListsDistricts extends AbstractListRecord
{

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

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


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