for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by Gorlum 08.01.2018 15:33
*/
namespace Core;
class Singleton {
private static $_singleton;
public static function singleton() {
__construct()
if (empty(static::$_singleton)) {
$_singleton
static
self
static::$_singleton = new static();
}
return static::$_singleton;