<?php

namespace App\Classes\Modules\Companies\Services;


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

class FetchesCompany extends AbstractFetchRecord
{

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


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


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