protected function generateBooleanValue(\XmlWriter $writer, $value, $key = null, $elementName = 'value')
    {
        $writer->startElement($elementName);
        $this->generateKeyAttribute($writer, $key);
        $writer->text($value ? 'true' : 'false');
        $writer->endElement();
    }
protected function generateBooleanValue(\XmlWriter $writer, $value, $key = null, $elementName = 'value')
    {
        $writer->startElement($elementName);
        $this->generateKeyAttribute($writer, $key);
        $writer->text($value ? 'true' : 'false');
        $writer->endElement();
    }
protected function generateBooleanValue ( \ XmlWriter $ writer , $ value , $ key = null , $ elementName = 'value' ) { $ writer -> startElement ( $ elementName ) ; $ this -> generateKeyAttribute ( $ writer , $ key ) ; $ writer -> text ( $ value ? 'true' : 'false' ) ; $ writer -> endElement ( ) ; }
Generates a boolean value.

@param \XmlWriter $writer
@param bool $value
@param string|null $key
@param string $elementName
Generates a boolean value .