<?php

namespace App\Classes\Modules\Documents\Services;


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

class ListsDocuments extends AbstractListRecord
{

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

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


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