<?php

namespace App\Classes\Modules\ServiceTypes\Services;


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

class ListsServiceTypes extends AbstractListRecord
{

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

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


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