public function finalize($singular = false)
    {
        $this->finalized = true;

        if ($singular === true) {
            $text = ' />';
        } else {
            $text = '>';
        }

        $this->append($text);
        return $this;
    }
public function finalize($singular = false)
    {
        $this->finalized = true;

        if ($singular === true) {
            $text = ' />';
        } else {
            $text = '>';
        }

        $this->append($text);
        return $this;
    }
public function finalize ( $ singular = false ) { $ this -> finalized = true ; if ( $ singular === true ) { $ text = ' />' ; } else { $ text = '>' ; } $ this -> append ( $ text ) ; return $ this ; }
Finalizes the opened tag

@param boolean $singular Whether element is singular
@return \Krystal\Form\NodeElement
Finalizes the opened tag