mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-20 21:14:10 +00:00
34 lines
666 B
PHP
34 lines
666 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\SegmentConstants\Services;
|
|
|
|
|
|
use App\Classes\General\Eloquent\AbstractFetchRecord;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use App\Models\SegmentConstant;
|
|
|
|
class FetchesSegmentConstant extends AbstractFetchRecord
|
|
{
|
|
|
|
/** @var SegmentConstant */
|
|
private $repository;
|
|
|
|
|
|
/**
|
|
* FetchesSegment constructor.
|
|
* @param SegmentConstant $repository
|
|
*/
|
|
public function __construct(SegmentConstant $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return Builder
|
|
*/
|
|
public function getRepository(): Builder
|
|
{
|
|
return $this->repository->newQuery();
|
|
}
|
|
} |