for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by Gorlum 03.09.2019 1:26
*/
namespace Common\Traits;
trait TSingleton {
private static $_me = null;
* @return static|null
public static function me() {
if (empty(static::$_me)) {
$_me
static
self
static::$_me = new static();
}
return static::$_me;