tests
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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() {}
|
||||
|
||||
public static function show($userId)
|
||||
{
|
||||
if (!self::$_instance) {
|
||||
self::$_instance = battles\nick::search($userId);
|
||||
}
|
||||
return self::$_instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user