public function endTag() { if ($this->name && !$this->isEmpty) { return '</' . $this->name . '>'; } return ''; }