Skip to content
Snippets Groups Projects
Commit 017eef93 authored by Michael Grosse's avatar Michael Grosse
Browse files

refactor: rename parameters to be less ambiguous

parent d1bbf588
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,11 @@ class OptGroup extends Element {
protected $value;
/**
* @param string $name The name of this form element
* @param string $options The available options
* @param string $label The label text for this element (will be autoescaped)
* @param array $options The available options
*/
public function __construct($name, $options) {
parent::__construct('optGroup', array('label' => $name));
public function __construct($label, $options) {
parent::__construct('optGroup', array('label' => $label));
$this->options($options);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment