/** * Initializes collection with a list of elements. * * @param array|RadioButton[] $elements RadioButton elements. */ public function __construct(array $elements = array()) { if (!$this->elementClass) { $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\RadioButton'; } parent::__construct($elements); }
/** * Initializes collection with a list of elements. * * @param array $elements Elements. */ public function __construct(array $elements = array()) { // Without this attempt to call "fromNodeElements" method from proxy test will fail. $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\TextInput'; parent::__construct($elements); }