mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
5940fd16b0
Currency Converter Logic Class
33 lines
612 B
PHP
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();
|
|
}
|
|
} |