<?php

namespace App\Classes\Modules\KeyValuePairs\Services;


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

class FetchesKeyValuePair extends AbstractFetchRecord
{

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

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


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