static public function throwTypingError($value)
    {
        $givenValue = (gettype($value) == 'object') ? get_class($value) : gettype($value);
        $acceptedTypes = array('boolean', 'integer', 'float', 'double', 'string', 'Duration', 'Pair', 'DirectedPair', 'Point');
        $acceptedTypes = implode(", ", $acceptedTypes);
        $msg = "A value is not compliant with the QTI runtime model datatypes: ${acceptedTypes} . '${givenValue}' given.";
        throw new InvalidArgumentException($msg);
    }
static public function throwTypingError($value)
    {
        $givenValue = (gettype($value) == 'object') ? get_class($value) : gettype($value);
        $acceptedTypes = array('boolean', 'integer', 'float', 'double', 'string', 'Duration', 'Pair', 'DirectedPair', 'Point');
        $acceptedTypes = implode(", ", $acceptedTypes);
        $msg = "A value is not compliant with the QTI runtime model datatypes: ${acceptedTypes} . '${givenValue}' given.";
        throw new InvalidArgumentException($msg);
    }
static public function throwTypingError ( $ value ) { $ givenValue = ( gettype ( $ value ) == 'object' ) ? get_class ( $ value ) : gettype ( $ value ) ; $ acceptedTypes = array ( 'boolean' , 'integer' , 'float' , 'double' , 'string' , 'Duration' , 'Pair' , 'DirectedPair' , 'Point' ) ; $ acceptedTypes = implode ( ", " , $ acceptedTypes ) ; $ msg = "A value is not compliant with the QTI runtime model datatypes: ${acceptedTypes} . '${givenValue}' given." ; throw new InvalidArgumentException ( $ msg ) ; }
Throw an InvalidArgumentException depending on a PHP in-memory value.

@param mixed $value A given PHP primitive value.
@throws \InvalidArgumentException In any case.
Throw an InvalidArgumentException depending on a PHP in - memory value .