public function __construct($template, $data = []) { $this->template = $template; $this->data = $data; }