<?php

namespace App\Classes\Modules\Contacts\Services;


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

class ListsContacts extends AbstractListRecord
{

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

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


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