Singleton en PHP 5.3 part II final publicstatic function getInstance() { $class = get_called_class(); if(!isset(self::$instances[$class])) { self::$instances[$class] = new static(); } return self::$instances[$class]; } final private function __clone(){} }
{}