public function readIntOrIdentifier()
    {
        try {
            $isInt = $this->readBoolean();

            return ($isInt === true) ? $this->readInteger() : $this->readIdentifier();
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while reading an intOrIdentifier.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::INTORIDENTIFIER, $e);
        }
    }
public function readIntOrIdentifier()
    {
        try {
            $isInt = $this->readBoolean();

            return ($isInt === true) ? $this->readInteger() : $this->readIdentifier();
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while reading an intOrIdentifier.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::INTORIDENTIFIER, $e);
        }
    }
public function readIntOrIdentifier ( ) { try { $ isInt = $ this -> readBoolean ( ) ; return ( $ isInt === true ) ? $ this -> readInteger ( ) : $ this -> readIdentifier ( ) ; } catch ( BinaryStreamAccessException $ e ) { $ msg = "An error occured while reading an intOrIdentifier." ; throw new QtiBinaryStreamAccessException ( $ msg , $ this , QtiBinaryStreamAccessException :: INTORIDENTIFIER , $ e ) ; } }
Read an intOrIdentifier from the current binary stream.

@return integer|string An integer or a string depending on the nature of the intOrIdentifier datatype.
Read an intOrIdentifier from the current binary stream .