Пример #1
0
 /**
  * @param array $prop
  *
  * @return DatabaseConfig
  */
 public static function getInstance($prop = null)
 {
     if (!self::$instance) {
         self::$instance = new self($prop);
     }
     return self::$instance;
 }
Пример #2
0
 /**
  * @param array $prop
  * @return DatabaseConfig
  */
 public static function getInstance($prop = null)
 {
     if (!self::$instance) {
         self::$instance = new DatabaseConfig($prop);
     }
     return self::$instance;
 }