Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Fun/Internal/LazyEvaluator.php
Назад
<?php declare(strict_types=1); namespace Psl\Fun\Internal; use Closure; /** * @internal * * @template T */ final class LazyEvaluator { /** * @var T|null */ private mixed $instance = null; private bool $initialized = false; /** * @param (Closure(): T) $initializer */ public function __construct( private Closure $initializer ) { } /** * @return T */ public function __invoke(): mixed { if (!$this->initialized) { $this->instance = ($this->initializer)(); $this->initialized = true; } return $this->instance; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка