1 Commits
4.0 ... 4.1

Author SHA1 Message Date
User
74a8b51047 20250514#1 2025-05-14 13:52:00 +03:00

View File

@@ -73,6 +73,15 @@ class Content implements TemplateInterface {
} }
} }
/**
* @param array $data
* @return void
*/
public function addData(array $data = []) : void {
foreach ($data as $dataKey => $dataVal){
$this->{$dataKey} = $dataVal;
}
}
/** /**
* @inheritDoc * @inheritDoc
@@ -111,6 +120,8 @@ class Content implements TemplateInterface {
$this->addSubtemplate($point, $subtemplate, $resource); $this->addSubtemplate($point, $subtemplate, $resource);
} }
/** /**
* @inheritDoc * @inheritDoc
*/ */