* (c) Webuni s.r.o. * (c) Colin O'Dell * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace League\CommonMark\Ext\Table; use League\CommonMark\Block\Element\AbstractBlock; use League\CommonMark\Block\Element\AbstractStringContainerBlock; use League\CommonMark\Block\Element\InlineContainerInterface; use League\CommonMark\ContextInterface; use League\CommonMark\Cursor; class TableCaption extends AbstractStringContainerBlock implements InlineContainerInterface { public $id; public function __construct(string $caption, string $id = null) { parent::__construct(); $this->finalStringContents = $caption; $this->id = $id; } public function canContain(AbstractBlock $block): bool { return false; } public function isCode(): bool { return false; } public function matchesNextLine(Cursor $cursor): bool { return false; } public function handleRemainingContents(ContextInterface $context, Cursor $cursor): void { } }