src/Api/Platform.php
public static function getTypeInstance($type)
	{
		$type = ucfirst(strtolower($type));
		if (!isset(self::$instances[$type])) {
			$class = 'JFusion\\Api\\Platform\\' . $type;
			self::$instances[$type] = new $class();
		}
		return self::$instances[$type];
	}
public static function getTypeInstance($type)
	{
		$type = ucfirst(strtolower($type));
		if (!isset(self::$instances[$type])) {
			$class = 'JFusion\\Api\\Platform\\' . $type;
			self::$instances[$type] = new $class();
		}
		return self::$instances[$type];
	}
public static function getTypeInstance ( $ type ) { $ type = ucfirst ( strtolower ( $ type ) ) ; if ( ! isset ( self :: $ instances [ $ type ] ) ) { $ class = 'JFusion\\Api\\Platform\\' . $ type ; self :: $ instances [ $ type ] = new $ class ( ) ; } return self :: $ instances [ $ type ] ; }
Get a platform type object.

@param string $type

@return Platform
Get a platform type object .