public function writeIdentifier($identifier)
    {
        try {
            $this->writeString($identifier);
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while writing an identifier.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::IDENTIFIER, $e);
        }
    }
public function writeIdentifier($identifier)
    {
        try {
            $this->writeString($identifier);
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while writing an identifier.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::IDENTIFIER, $e);
        }
    }
public function writeIdentifier ( $ identifier ) { try { $ this -> writeString ( $ identifier ) ; } catch ( BinaryStreamAccessException $ e ) { $ msg = "An error occured while writing an identifier." ; throw new QtiBinaryStreamAccessException ( $ msg , $ this , QtiBinaryStreamAccessException :: IDENTIFIER , $ e ) ; } }
Write an identifier in the current binary stream.

@param string $identifier A QTI Identifier.
@throws \qtism\runtime\storage\binary\QtiBinaryStreamAccessException
Write an identifier in the current binary stream .