for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LE_ACME2;
trait SingletonTrait {
private static $_instance = NULL;
final public static function getInstance(): self {
if( self::$_instance === NULL ) {
self::$_instance = new self();
}
return self::$_instance;