<?php

namespace App\Classes\Modules\Segments\Services;


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

class ListsConstants extends AbstractListRecord
{

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

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


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