mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 20:44:01 +00:00
33 lines
613 B
PHP
33 lines
613 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Documents\Services;
|
|
|
|
|
|
use App\Classes\General\Eloquent\AbstractListRecord;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use App\Models\Document;
|
|
|
|
class ListsDocuments extends AbstractListRecord
|
|
{
|
|
|
|
/** @var Document */
|
|
private $repository;
|
|
|
|
/**
|
|
* ListsDocuments constructor.
|
|
* @param Document $repository
|
|
*/
|
|
public function __construct(Document $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return Builder
|
|
*/
|
|
function getRepository(): Builder
|
|
{
|
|
return $this->repository->newQuery();
|
|
}
|
|
} |