AbstractHtmlProcessor::fromDomDocument() – Builds a new instance from the given DOM document.

You appear to be a bot. Output may be restricted

Description

Builds a new instance from the given DOM document.

Usage

$static = AbstractHtmlProcessor::fromDomDocument( $document );

Parameters

$document
( \DOMDocument ) required – a DOM document returned by getDomDocument() of another instance

Returns

static

Source

File name: woocommerce/vendor/pelago/emogrifier/src/Emogrifier/HtmlProcessor/AbstractHtmlProcessor.php
Lines:

1 to 7 of 7
    public static function fromDomDocument(\DOMDocument $document)
    {
        $instance = new static();
        $instance->setDomDocument($document);

        return $instance;
    }
 

 View on GitHub View on Trac