<?php

namespace App\Classes\Modules\Segments\Services;


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

class ListsSegments extends AbstractListRecord
{

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

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


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