/** * Singleton. Get instance of the class */ public static function getInstance() { if (!self::$instance instanceof ezpRestDebugHandler) { self::$instance = new self(); } return self::$instance; }