<?php

namespace App\Classes\Modules\Companies\Services;


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

class ListsCompanyModules extends AbstractListRecord
{

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

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


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