protected function addTagContentFields(Document  $document, $tagContent = [])
    {
        foreach ($tagContent as $fieldName => $fieldValue) {
            $document->setField($fieldName, $fieldValue);
        }
    }
protected function addTagContentFields(Document  $document, $tagContent = [])
    {
        foreach ($tagContent as $fieldName => $fieldValue) {
            $document->setField($fieldName, $fieldValue);
        }
    }
protected function addTagContentFields ( Document $ document , $ tagContent = [ ] ) { foreach ( $ tagContent as $ fieldName => $ fieldValue ) { $ document -> setField ( $ fieldName , $ fieldValue ) ; } }
Add content from several tags like headers, anchors, ...

@param Document $document
@param array $tagContent
Add content from several tags like headers anchors ...