2018-03-03 18:11:48 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2018.
|
|
|
|
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
|
|
|
* Project name: Battles-Game
|
|
|
|
*/
|
|
|
|
|
|
|
|
class n
|
|
|
|
{
|
|
|
|
private static $_instance = null;
|
|
|
|
|
|
|
|
private function __clone() {}
|
|
|
|
private function __construct() {}
|
|
|
|
|
2018-03-03 18:21:58 +00:00
|
|
|
|
2018-03-03 18:11:48 +00:00
|
|
|
public static function show($userId)
|
|
|
|
{
|
|
|
|
if (!self::$_instance) {
|
2018-03-03 18:21:58 +00:00
|
|
|
self::$_instance = battles\nick::search($userId)->geninf();
|
2018-03-03 18:11:48 +00:00
|
|
|
}
|
|
|
|
return self::$_instance;
|
|
|
|
}
|
|
|
|
}
|