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 / 3
SelserData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 3
 __construct
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 3
<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\Core;
use Wikimedia\Parsoid\DOM\Document;
/**
 * Data that's necessary for selective serialization, to be passed to the
 * library entrypoint.
 */
class SelserData {
    /** @var string */
    public $oldText;
    /** @var string */
    public $oldHTML;
    /**
     * DOM document corresponding to $oldHTML
     * @var Document
     */
    public $oldDOM;
    /**
     * Data that's necessary to perform selective serialization.
     *
     * @param string $oldText
     * @param ?string $oldHTML
     */
    public function __construct( string $oldText, ?string $oldHTML = null ) {
        $this->oldText = $oldText;
        $this->oldHTML = $oldHTML;
    }
}