File manager - Edit - /home/verseaumee/geniouskin/wp-content/plugins/nprojects/classes/nprojects-base.php
Back
<?php /** * WARNING: This file is part of the Projects plugin. DO NOT edit * this file under any circumstances. */ /** * Prevent direct access to this file */ defined( 'ABSPATH' ) or die(); /** * Abstraction singleton class that provide methods * to implement singleton design pattern for all sub-classes * * @package Projects * @author */ abstract class nProjects_Base { /** * This property will hold all instances * of sub-classes. * * @var array */ private static $instances = array(); /** * Create new instance of sub-class if it's doesn't created before and * store it to memory. Return the stored instance if it is created * * @return mixed */ public static function instance() { $class = get_called_class(); if ( ! isset( self::$instances[ $class ] ) ) self::$instances[ $class ] = new $class(); return self::$instances[ $class ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings