public __construct ( string $text, Workspace $workspace, Settings $settings, Component_Text_Styles $styles, Component_Layouts $layouts, Markdown $markdown = null ) | ||
$text | string | |
$workspace | Workspace | |
$settings | Settings | |
$styles | Component_Text_Styles | |
$layouts | Component_Layouts | |
$markdown | Markdown |
function __construct($text, $workspace, $settings, $styles, $layouts, $markdown = null)
{
$this->workspace = $workspace;
$this->settings = $settings;
$this->styles = $styles;
$this->layouts = $layouts;
$this->markdown = $markdown ?: new \Apple_Exporter\Markdown();
$this->text = $text;
$this->json = null;
// Once the text is set, build proper JSON. Store as an array.
$this->build($this->text);
}