public static function MakeNumberSegments($segments)
	{
		$NumberSegments = [];

		foreach ($segments as $segment)
		{
			$NumberSegments[] = new NumberSegment($segment);
		}

		return $NumberSegments;
	}
public static function MakeNumberSegments($segments)
	{
		$NumberSegments = [];

		foreach ($segments as $segment)
		{
			$NumberSegments[] = new NumberSegment($segment);
		}

		return $NumberSegments;
	}
public static function MakeNumberSegments ( $ segments ) { $ NumberSegments = [ ] ; foreach ( $ segments as $ segment ) { $ NumberSegments [ ] = new NumberSegment ( $ segment ) ; } return $ NumberSegments ; }
This is the actual factory method that converts regular string segments into
the number segment types we need to work with.

@param $segments string[]
@return NumberSegment[]
This is the actual factory method that converts regular string segments into the number segment types we need to work with .