serializeTableTag( PHPUtils::coalesce( $dp->startTagSrc ?? null, '|+' ), null, $state, $node, $wrapperUnmodified ); WTSUtils::emitStartTag( $tableTag, $node, $state ); $state->serializeChildren( $node ); return $node->nextSibling; } /** @inheritDoc */ public function before( DOMElement $node, DOMNode $otherNode, SerializerState $state ): array { return ( $otherNode->nodeName !== 'table' ) ? [ 'min' => 1, 'max' => $this->maxNLsInTable( $node, $otherNode ) ] : [ 'min' => 0, 'max' => $this->maxNLsInTable( $node, $otherNode ) ]; } /** @inheritDoc */ public function after( DOMElement $node, DOMNode $otherNode, SerializerState $state ): array { return [ 'min' => 1, 'max' => $this->maxNLsInTable( $node, $otherNode ) ]; } }