FOF30\Factory\Scaffolding\Layout\BaseErector::__construct PHP Method

__construct() public method

Construct the erector object
public __construct ( Builder $parent, DataModel $model, string $viewName )
$parent Builder The parent builder
$model FOF30\Model\DataModel The model we're erecting a scaffold against
$viewName string The view name for this model
    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>');
    }