battles/classes/n.php
2018-03-03 21:17:22 +02:00

27 lines
487 B
PHP

<?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() {}
/**
* @param $userId
* @return null|string
*/
public static function show($userId)
{
if (!self::$_instance) {
self::$_instance = nick::search($userId);
}
return self::$_instance;
}
}