Jyxo\HtmlTag::close PHP Method

close() public method

Creates and returns the closing tag.
public close ( ) : string
return string
    public function close() : string
    {
        if (true === $this->contentOnly) {
            return '';
        }
        $close = '</' . $this->tag . '>';
        if ($this->xhtml) {
            $buff = !$this->isEmptyElement ? $close : '';
        } else {
            $buff = $close;
        }
        $buff .= "\n";
        return $buff;
    }