public function writeEndElement(): self
    {
        if ($this->isFinished()) {
            throw new \LogicException('Can not write end elements, no element open.');
        }

        $this->doWriteEndElement();
        $this->depth--;
        return $this;
    }
public function writeEndElement(): self
    {
        if ($this->isFinished()) {
            throw new \LogicException('Can not write end elements, no element open.');
        }

        $this->doWriteEndElement();
        $this->depth--;
        return $this;
    }
public function writeEndElement ( ) : self { if ( $ this -> isFinished ( ) ) { throw new \ LogicException ( 'Can not write end elements, no element open.' ) ; } $ this -> doWriteEndElement ( ) ; $ this -> depth -- ; return $ this ; }
Write an end element

@return  \stubbles\xml\XmlStreamWriter
@throws  \LogicException  in case no element is open
Write an end element