public static function createFromDataModel(ValueCollection $valueCollection, $baseType = BaseType::INTEGER)
    {
        $container = new static($baseType);
        foreach ($valueCollection as $value) {
            $container[] = RuntimeUtils::valueToRuntime($value->getValue(), $value->getBaseType());
        }

        return $container;
    }
public static function createFromDataModel(ValueCollection $valueCollection, $baseType = BaseType::INTEGER)
    {
        $container = new static($baseType);
        foreach ($valueCollection as $value) {
            $container[] = RuntimeUtils::valueToRuntime($value->getValue(), $value->getBaseType());
        }

        return $container;
    }
public static function createFromDataModel ( ValueCollection $ valueCollection , $ baseType = BaseType :: INTEGER ) { $ container = new static ( $ baseType ) ; foreach ( $ valueCollection as $ value ) { $ container [ ] = RuntimeUtils :: valueToRuntime ( $ value -> getValue ( ) , $ value -> getBaseType ( ) ) ; } return $ container ; }
Create a MultipleContainer object from a Data Model ValueCollection object.

@param \qtism\data\state\ValueCollection $valueCollection A collection of qtism\data\state\Value objects.
@param integer $baseType A value from the BaseType enumeration.
@return \qtism\runtime\common\MultipleContainer A MultipleContainer object populated with the values found in $valueCollection.
@throws \InvalidArgumentException If a value from $valueCollection is not compliant with the QTI Runtime Model or the container type.
Create a MultipleContainer object from a Data Model ValueCollection object .