<?php

namespace App\Classes\Modules\Companies\Services;


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

class FetchesCompanyConnection extends AbstractFetchRecord
{

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


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


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