<?php

namespace App\Classes\Modules\ServiceTypes\Services;


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

class FetchesServiceType extends AbstractFetchRecord
{

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

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


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