<?php

namespace App\Classes\Modules\Documents\Services;


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

class FetchesDocument extends AbstractFetchRecord
{

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

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


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