Zend\Dom\Document::__construct
Constructor
Signature
public function __construct([string|null
$document = null,
[string|null
$type = null,
[string|null
$encoding = null]]] )
Parameters
$document
— object- String containing the document
$type
— object- Force the document to be of a certain type, bypassing setStringDocument's detection
$encoding
— object- Encoding for the document (used for DOMDocument generation)