Files
shipping-portal/app/Classes/Modules/Currencies/Services/ListsCurrency.php
T

33 lines
612 B
PHP

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