Jyxo\HtmlTag::close PHP 메소드

close() 공개 메소드

Creates and returns the closing tag.
public close ( ) : string
리턴 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;
    }