Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74a8b51047 |
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user