public function __construct(Builder $parent, DataModel $model, $viewName) { $this->builder = $parent; $this->model = $model; $this->viewName = $viewName; $this->xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><form></form>'); }