public function serializeBool($value, XmlStreamWriter $xmlWriter, string $tagName = null): XmlStreamWriter
    {
        return $this->serializeScalarValue(
                $this->convertBoolToString($value),
                $xmlWriter,
                null === $tagName ? 'boolean' : $tagName
        );
    }
public function serializeBool($value, XmlStreamWriter $xmlWriter, string $tagName = null): XmlStreamWriter
    {
        return $this->serializeScalarValue(
                $this->convertBoolToString($value),
                $xmlWriter,
                null === $tagName ? 'boolean' : $tagName
        );
    }
public function serializeBool ( $ value , XmlStreamWriter $ xmlWriter , string $ tagName = null ) : XmlStreamWriter { return $ this -> serializeScalarValue ( $ this -> convertBoolToString ( $ value ) , $ xmlWriter , null === $ tagName ? 'boolean' : $ tagName ) ; }
serializes boolean value to xml

@param   bool                           $value
@param   \stubbles\xml\XmlStreamWriter  $xmlWriter  xml writer to write serialized value into
@param   string                         $tagName    name of the surrounding xml tag
@return  \stubbles\xml\XmltreamWriter
@since   1.6.0
serializes boolean value to xml