/
kano2711
/
perfectPanel
Обзор
Документация
Войти
/
kano2711
/
perfectPanel
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
api-test/entity/Currency.php
29 строк
533 B
kano
получаем данные по первому endpoint
12 окт 2025, 19:34
12 окт 2025, 19:34
e9e52a2
Код
Авторство
О чём код?
<?php namespace app\entity; // use app\entity\Pairs; class Currency { public string|null $currency; public function __construct( string|null $currency ) { $this->currency = $currency === null ? null : $this->checkCurrency($currency); } public function checkCurrency(string|null $currency) { $pairs = new Pairs(); $result = $pairs->searchCurrency($currency); if (empty($result)) { return null; } return \strtoupper($currency); } }