<?php

namespace App\Classes\Modules\KeyValuePairs\Services;


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

class ListsKeyValuePairs extends AbstractListRecord
{

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

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


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