File manager - Edit - /var/www/payraty/helpdesk/vendor/opcodesio/log-viewer/src/Concerns/LogReader/KeepsInstances.php
Back
<?php namespace Opcodes\LogViewer\Concerns\LogReader; use Opcodes\LogViewer\LogFile; trait KeepsInstances { /** * Cached LogReader instances. */ public static array $_instances = []; public static function instance(LogFile $file): static { if (! isset(static::$_instances[$file->path])) { static::$_instances[$file->path] = new static($file); } return static::$_instances[$file->path]; } public static function clearInstance(LogFile $file): void { if (isset(static::$_instances[$file->path])) { unset(static::$_instances[$file->path]); } } public static function clearInstances(): void { static::$_instances = []; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings