<?php

namespace App\Classes\Modules\Transports\Services;


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

class FetchesTransport extends AbstractFetchRecord
{

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

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


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