<?php

namespace App\Classes\Modules\Companies\Services;


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

class ListsCompanies extends AbstractListRecord
{

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

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


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