A modern implementation of the Singleton Pattern in php.
instance()
Retuns the singleton
__construct()
Make constructor private, so nobody can call "new Class".
__clone()
Make clone magic method private, so nobody can clone instance.
__sleep()
Make sleep magic method private, so nobody can serialize instance.
__wakeup()
Make wakeup magic method private, so nobody can unserialize instance.