$this->
assignData($page,
$data);
return $page;
} /**
* @param array<string, mixed> $data
*/
private function assignData(ShopPage
$shopPage, array
$data): void
{ $shopPage->
setId((int) $data['__page_id'
]);
$shopPage->
setTpl1Variable($data['__page_tpl1variable'
]);
$shopPage->
setTpl1Path($data['__page_tpl1path'
]);
$shopPage->
setTpl2Variable($data['__page_tpl2variable'
]);
$shopPage->
setTpl2Path($data['__page_tpl2path'
]);
$shopPage->
setTpl3Variable($data['__page_tpl3variable'
]);
$shopPage->
setTpl3Path($data['__page_tpl3path'
]);
$shopPage->
setDescription($data['__page_description'
]);
$shopPage->
setHtml($data['__page_html'
]);
$shopPage->
setGrouping(explode('|',
$data['__page_grouping'
]));
$shopPage->
setPosition((int) $data['__page_position'
]);
$shopPage->
setLink($data['__page_link'
]);
$shopPage->
setTarget($data['__page_target'
]);