Files
omair saleh 05401f6bbc large commit
2021-03-11 13:06:40 +08:00

33 lines
640 B
PHP

<?php
namespace App\Classes\Modules\Segments\Services;
use App\Classes\General\Eloquent\AbstractListRecord;
use Illuminate\Database\Eloquent\Builder;
use App\Models\SegmentConstant;
class ListsConstants extends AbstractListRecord
{
/** @var SegmentConstant */
private $repository;
/**
* ListsConstants constructor.
* @param SegmentConstant $repository
*/
public function __construct(SegmentConstant $repository)
{
$this->repository = $repository;
}
/**
* @return Builder
*/
function getRepository(): Builder
{
return $this->repository->newQuery();
}
}