/** * Object constructor * * @param string * @param array */ protected function __construct($name, array $config = array()) { // Grab the form attributes $formAttributes = Arr::get($config, 'form_attributes', array()); $this->form = new Form(); $this->form->setAttributes($formAttributes); $this->form->setName($name); }