Files
2020-12-07 16:35:00 +08:00

33 lines
609 B
PHP

<?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();
}
}