<?php

namespace App\Classes\Modules\Segments\Services;


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

class FetchesConstant extends AbstractFetchRecord
{

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

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


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