mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
35 lines
633 B
PHP
35 lines
633 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Milestones\Services;
|
|
|
|
|
|
use App\Classes\General\Eloquent\AbstractFetchRecord;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use App\Models\Milestone;
|
|
|
|
class FetchesMilestone extends AbstractFetchRecord
|
|
{
|
|
|
|
/** @var Milestone */
|
|
private $repository;
|
|
|
|
|
|
/**
|
|
* FetchesMilestone constructor.
|
|
* @param Milestone $repository
|
|
*/
|
|
public function __construct(Milestone $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return Builder
|
|
*/
|
|
public function getRepository(): Builder
|
|
{
|
|
return $this->repository->newQuery();
|
|
}
|
|
}
|