<?php

namespace App\Classes\Modules\Addresses\Services;


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

class FetchesAddress extends AbstractFetchRecord
{

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

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


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