5use InvalidArgumentException;
6use Wikimedia\RemexHtml\Serializer\SerializerNode;
7use Wikimedia\RemexHtml\TreeBuilder\Element;
79 public function __set( $name, $value ) {
81 throw new InvalidArgumentException(
"Cannot set property \"$name\"" );
93 if ( $this->childPElement ) {
94 $parts[] =
'childPElement=' . $this->childPElement->getDebugTag();
96 if ( $this->ancestorPNode ) {
97 $parts[] =
"ancestorPNode=<{$this->ancestorPNode->name}>";
99 if ( $this->wrapBaseNode ) {
100 $parts[] =
"wrapBaseNode=<{$this->wrapBaseNode->name}>";
102 if ( $this->currentCloneElement ) {
103 $parts[] =
"currentCloneElement=" . $this->currentCloneElement->getDebugTag();
105 if ( $this->isPWrapper ) {
106 $parts[] =
'isPWrapper';
108 if ( $this->isSplittable ) {
109 $parts[] =
'isSplittable';
111 if ( $this->needsPWrapping ) {
112 $parts[] =
'needsPWrapping';
114 if ( $this->nonblankNodeCount ) {
115 $parts[] =
"nonblankNodeCount={$this->nonblankNodeCount}";
117 $s =
"RemexMungerData {\n";
118 foreach ( $parts as $part ) {