Piwik\API\Proxy::checkClassIsSingleton PHP Method

checkClassIsSingleton() private method

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.");
        }
    }