public function writeBoolean($boolean)
    {
        try {
            $val = ($boolean === true) ? 1 : 0;
            $this->getStream()->write(chr($val));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::FLOAT, false);
        }
    }
public function writeBoolean($boolean)
    {
        try {
            $val = ($boolean === true) ? 1 : 0;
            $this->getStream()->write(chr($val));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::FLOAT, false);
        }
    }
public function writeBoolean ( $ boolean ) { try { $ val = ( $ boolean === true ) ? 1 : 0 ; $ this -> getStream ( ) -> write ( chr ( $ val ) ) ; } catch ( StreamException $ e ) { $ this -> handleStreamException ( $ e , BinaryStreamAccessException :: FLOAT , false ) ; } }
Write a boolean value from the current binary stream.

@param boolean $boolean
@throws \qtism\common\storage\BinaryStreamAccessException
Write a boolean value from the current binary stream .