<?php

namespace App\Classes\Modules\Contacts\Services;


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

class FetchesContact extends AbstractFetchRecord
{

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

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


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