public function __construct($templatePath = "", $attributes = []) { $this->templatePath = rtrim($templatePath, '/\\') . '/'; $this->attributes = $attributes; }