public static final function getInstance($className) { $instance = Singleton::getConcreteInstance($className); if (!$instance) { $instance = Singleton::createInstance($className); } return $instance; }