public function appendTo(Element $container) { $container->append($this); return $this; }
private function _processBlock(TextReader $reader, Element $container, $blockType, $langType) { $langType = $blockType == 'SRC' ? $langType : 'plain'; $block = new CodeBlockElement(['lang' => $langType]); $container->append($block); $blockContent = $this->_readBlock($reader, $blockType); $block->setCode($blockContent); }