diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-11 20:31:16 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-11 20:31:16 +0200 |
commit | 1f5d8b65a983fe0914971ee0bb4e5e58cbf8c8a7 (patch) | |
tree | 4413a5f46730fb951305a9dd214c696f13acf406 /inc/Form/TagCloseElement.php | |
parent | 370c645068595c6750cee2b38eb96aeaac3a9dbb (diff) | |
download | rpg-1f5d8b65a983fe0914971ee0bb4e5e58cbf8c8a7.tar.gz rpg-1f5d8b65a983fe0914971ee0bb4e5e58cbf8c8a7.tar.bz2 |
balance fieldsets
Diffstat (limited to 'inc/Form/TagCloseElement.php')
-rw-r--r-- | inc/Form/TagCloseElement.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/inc/Form/TagCloseElement.php b/inc/Form/TagCloseElement.php index 896945b97..dc0264c21 100644 --- a/inc/Form/TagCloseElement.php +++ b/inc/Form/TagCloseElement.php @@ -20,6 +20,51 @@ class TagCloseElement extends ValueElement { } /** + * 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'); + } + + /** * The HTML representation of this element * * @return string @@ -27,4 +72,5 @@ class TagCloseElement extends ValueElement { public function toHTML() { return '</'.$this->val().'>'; } + } |