# CodeBlock concrete CommonMark\Node

(cmark >= 1.0.0)

## Class synopsis

final CommonMark\Node\CodeBlock extends CommonMark\Node\Text implements CommonMark\Interfaces\IVisitable , Traversable {
/* Inherited properties */
public readonly ?Node $parent ;
public readonly ?Node $previous ;
public readonly ?Node $next ;
public readonly ?Node $lastChild ;
public readonly ?Node $firstChild ;
public readonly int $startLine ;
public readonly int $endLine ;
public readonly int $startColumn ;
public readonly int $endColumn ;
public ?string $literal ;
/* Properties */
public ?string $fence ;
/* Constructor */
public CommonMark\Node\Text::__construct ( void )
public CommonMark\Node\Text::__construct ( string `$literal` )
public __construct ( string `$fence` , string `$literal` )
/* Inherited methods */
public CommonMark\Node::appendChild ( CommonMark\Node `$child` ) : CommonMark\Node
public CommonMark\Node::prependChild ( CommonMark\Node `$child` ) : CommonMark\Node
public CommonMark\Node::insertAfter ( CommonMark\Node `$sibling` ) : CommonMark\Node
public CommonMark\Node::insertBefore ( CommonMark\Node `$sibling` ) : CommonMark\Node
public CommonMark\Node::replace ( CommonMark\Node `$target` ) : CommonMark\Node
public CommonMark\Node::unlink ( void ) : void
public CommonMark\Node::accept ( CommonMark\Interfaces\IVisitor `$visitor` ) : void
}

## Table of Contents

- CommonMark\Node\CodeBlock::__construct — CodeBlock Construction