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