<?php

namespace App\Classes\Modules\Addresses\Services;


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

class ListsAddresses extends AbstractListRecord
{

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

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


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