<?php

namespace App\Classes\Modules\Segments\Services;


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

class FetchesSegment extends AbstractFetchRecord
{

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


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


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