Piwik\API\Proxy::checkClassIsSingleton PHP Méthode

checkClassIsSingleton() private méthode

Checks that the class is a Singleton (presence of the getInstance() method)
private checkClassIsSingleton ( string $className )
$className string The class name
    private function checkClassIsSingleton($className)
    {
        if (!method_exists($className, "getInstance")) {
            throw new Exception("{$className} that provide an API must be Singleton and have a 'public static function getInstance()' method.");
        }
    }