File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/calendar/lib/internals/singletontrait.php
Back
<?php namespace Bitrix\Calendar\Internals; use Bitrix\Calendar\Core\Base\BaseException; trait SingletonTrait { /** * @var static|null */ protected static $instance = null; /** * @return static */ public static function getInstance() { if (static::$instance === null) { static::$instance = new static(); } return static::$instance; } protected function __construct(){} /** * @throws BaseException */ public function __wakeup() { throw new BaseException("Trying to wake singleton up"); } protected function __clone(){} }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings