xref: /dokuwiki/inc/Form/FieldsetCloseElement.php (revision 64744a10c5578602141ae2977274eec3fcff1f44)
1<?php
2namespace dokuwiki\Form;
3
4/**
5 * Class FieldsetCloseElement
6 *
7 * Closes an open Fieldset
8 *
9 * @package dokuwiki\Form
10 */
11class FieldsetCloseElement extends TagCloseElement {
12
13    /**
14     * @param array $attributes
15     */
16    public function __construct($attributes = array()) {
17        parent::__construct('tagclose', $attributes);
18    }
19
20    /**
21     * do not call this
22     *
23     * @param $class
24     * @return void
25     * @throws \BadMethodCallException
26     */
27    public function addClass($class) {
28        throw new \BadMethodCallException('You can\t add classes to closing tag');
29    }
30
31    /**
32     * do not call this
33     *
34     * @param $id
35     * @return void
36     * @throws \BadMethodCallException
37     */
38    public function id($id = null) {
39        throw new \BadMethodCallException('You can\t add ID to closing tag');
40    }
41
42    /**
43     * do not call this
44     *
45     * @param $name
46     * @param $value
47     * @return void
48     * @throws \BadMethodCallException
49     */
50    public function attr($name, $value = null) {
51        throw new \BadMethodCallException('You can\t add attributes to closing tag');
52    }
53
54    /**
55     * do not call this
56     *
57     * @param $attributes
58     * @return void
59     * @throws \BadMethodCallException
60     */
61    public function attrs($attributes = null) {
62        throw new \BadMethodCallException('You can\t add attributes to closing tag');
63    }
64}
65