Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
ContentModelHandler
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0
0.00% covered (danger)
0.00%
0 / 1
 toDOM
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0
 fromDOM
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0
1<?php
2declare( strict_types = 1 );
3
4namespace Wikimedia\Parsoid\Core;
5
6use Wikimedia\Parsoid\DOM\Document;
7use Wikimedia\Parsoid\Ext\ParsoidExtensionAPI;
8
9abstract class ContentModelHandler {
10
11    /**
12     * @param ParsoidExtensionAPI $extApi
13     * @param ?SelectiveUpdateData $selectiveUpdateData
14     * @return Document the result document in "prepared and loaded" form
15     */
16    abstract public function toDOM(
17        ParsoidExtensionAPI $extApi, ?SelectiveUpdateData $selectiveUpdateData = null
18    ): Document;
19
20    /**
21     * @param ParsoidExtensionAPI $extApi
22     * @param ?SelectiveUpdateData $selectiveUpdateData
23     * @return string
24     */
25    abstract public function fromDOM(
26        ParsoidExtensionAPI $extApi, ?SelectiveUpdateData $selectiveUpdateData = null
27    ): string;
28
29}