fix typo
improve phpdoc
The tempDocumentHeaders and tempDocumentFooters array attributes are passed to this method parameter
tempDocumentHeaders
tempDocumentFooters