public static function getInstance() { if (!self::$myInstance) { self::$myInstance = new flavorParamsOutputPeer(); } if (!self::$instance || !self::$instance instanceof flavorParamsOutputPeer) { self::$instance = self::$myInstance; } return self::$myInstance; }