/
Wild_RNB
/
ASU
Обзор
Документация
Войти
/
Wild_RNB
/
ASU
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/Runtime/Status.php
26 строк
555 B
am190620045-afk
Extend runtime status with metrics reporting
15 июл 2026, 22:19
15 июл 2026, 22:19
254542e
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace ASU\Runtime; use ASU\Module\Status as ModuleStatus; final class Status { public function __construct( private readonly State $state, private readonly ?Metrics $metrics = null ) { } public function report(?ModuleStatus $modules = null): array { return [ 'runtime' => Metadata::get(), 'state' => $this->state->all(), 'metrics' => $this->metrics?->all() ?? [], 'modules' => $modules?->report() ?? [], ]; } }