summaryrefslogtreecommitdiff
path: root/inc/Form/FieldsetCloseElement.php
blob: 0de84e2515a965b17c7973f0f40b730bc508c2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace dokuwiki\Form;

/**
 * Class FieldsetCloseElement
 *
 * Closes an open Fieldset
 *
 * @package dokuwiki\Form
 */
class FieldsetCloseElement extends TagCloseElement {

    /**
     * @param array $attributes
     */
    public function __construct($attributes = array()) {
        parent::__construct('tagclose', $attributes);
    }

    /**
     * do not call this
     *
     * @param $class
     * @return void
     * @throws \BadMethodCallException
     */
    public function addClass($class) {
        throw new \BadMethodCallException('You can\t add classes to closing tag');
    }

    /**
     * do not call this
     *
     * @param $id
     * @return void
     * @throws \BadMethodCallException
     */
    public function id($id = null) {
        throw new \BadMethodCallException('You can\t add ID to closing tag');
    }

    /**
     * do not call this
     *
     * @param $name
     * @param $value
     * @return void
     * @throws \BadMethodCallException
     */
    public function attr($name, $value = null) {
        throw new \BadMethodCallException('You can\t add attributes to closing tag');
    }

    /**
     * do not call this
     *
     * @param $attributes
     * @return void
     * @throws \BadMethodCallException
     */
    public function attrs($attributes = null) {
        throw new \BadMethodCallException('You can\t add attributes to closing tag');
    }
}