/**
* @return ArrayCollection<int, DocumentElement>
*/
private function createDocumentElements(Document
$model): ArrayCollection
{ $elementCollection =
new ArrayCollection();
$elementModel =
new DocumentElement();
$elementModel->
setName('Body'
);
$elementModel->
setValue(''
);
$elementModel->
setStyle('width:100%; font-family: Verdana, Arial, Helvetica, sans-serif; font-size:11px;'
);
$elementModel->
setDocument($model);
$elementCollection->
add($elementModel);
$elementModel =
new DocumentElement();
$elementModel->
setName('Logo'
);
$elementModel->
setValue('<p><img src="http://www.shopware.de/logo/logo.png" alt="" /></p>'
);
$elementModel->
setStyle('height: 20mm; width: 90mm; margin-bottom:5mm;'
);
$elementModel->
setDocument($model);
$elementCollection->
add($elementModel);
$elementModel =
new DocumentElement();