Files
exchange-2.0/app/Classes/Modules/Currencies/Services/ListsCurrency.php
T
CheeSiong 5940fd16b0 ListCurrencyLogicClass
Currency Converter Logic Class
2020-12-02 17:31:00 +08:00

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();
}
}