public static function getInstance($apiKey = NULL, $servRouteInstance = NULL) { $className = get_called_class(); if (self::$instance === NULL) { self::$instance = new $className($apiKey, $servRouteInstance); } return self::$instance; }