5use InvalidArgumentException;
6use Wikimedia\RemexHtml\Serializer\SerializerNode;
7use Wikimedia\RemexHtml\TreeBuilder\Element;
83 public function __set( $name, $value ) {
85 throw new InvalidArgumentException(
"Cannot set property \"$name\"" );
97 if ( $this->childPElement ) {
98 $parts[] =
'childPElement=' . $this->childPElement->getDebugTag();
100 if ( $this->ancestorPNode ) {
101 $parts[] =
"ancestorPNode=<{$this->ancestorPNode->name}>";
103 if ( $this->wrapBaseNode ) {
104 $parts[] =
"wrapBaseNode=<{$this->wrapBaseNode->name}>";
106 if ( $this->currentCloneElement ) {
107 $parts[] =
"currentCloneElement=" . $this->currentCloneElement->getDebugTag();
109 if ( $this->isPWrapper ) {
110 $parts[] =
'isPWrapper';
112 if ( $this->isSplittable ) {
113 $parts[] =
'isSplittable';
115 if ( $this->needsPWrapping ) {
116 $parts[] =
'needsPWrapping';
118 if ( $this->nonblankNodeCount ) {
119 $parts[] =
"nonblankNodeCount={$this->nonblankNodeCount}";
121 $s =
"RemexMungerData {\n";
122 foreach ( $parts as $part ) {