Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 2
ContentModelHandler
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
12
0.00% covered (danger)
0.00%
0 / 2
 toDOM
n/a
0 / 0
1
n/a
0 / 0
 fromDOM
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 2
<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\Core;
use Wikimedia\Parsoid\DOM\Document;
use Wikimedia\Parsoid\Ext\ParsoidExtensionAPI;
abstract class ContentModelHandler {
    /**
     * @param ParsoidExtensionAPI $extApi
     * @return Document
     */
    abstract public function toDOM( ParsoidExtensionAPI $extApi ): Document;
    /**
     * @param ParsoidExtensionAPI $extApi
     * @param ?SelserData $selserData
     * @return string
     */
    abstract public function fromDOM(
        ParsoidExtensionAPI $extApi, ?SelserData $selserData = null
    ): string;
}