1<?php 2namespace dokuwiki\Form; 3 4/** 5 * Class TagCloseElement 6 * 7 * Creates an HTML close tag. You have to make sure it has been opened 8 * before or this will produce invalid HTML 9 * 10 * @package dokuwiki\Form 11 */ 12class TagCloseElement extends ValueElement { 13 14 /** 15 * @param string $tag 16 * @param array $attributes 17 */ 18 public function __construct($tag, $attributes = array()) { 19 parent::__construct('tagclose', $tag, $attributes); 20 } 21 22 /** 23 * The HTML representation of this element 24 * 25 * @return string 26 */ 27 public function toHTML() { 28 return '</'.$this->val().'>'; 29 } 30} 31