/** * Static method returns runtime object. Singleton pattern. * * @return CBPRuntime */ public static function GetRuntime() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }