1<?php 2 3/* 4 * This file is part of the league/commonmark package. 5 * 6 * (c) Colin O'Dell <colinodell@gmail.com> 7 * (c) Rezo Zero / Ambroise Maupate 8 * 9 * For the full copyright and license information, please view the LICENSE 10 * file that was distributed with this source code. 11 */ 12 13declare(strict_types=1); 14 15namespace League\CommonMark\Extension\Footnote\Node; 16 17use League\CommonMark\Block\Element\AbstractBlock; 18use League\CommonMark\Cursor; 19 20/** 21 * @method children() AbstractBlock[] 22 */ 23final class FootnoteContainer extends AbstractBlock 24{ 25 public function canContain(AbstractBlock $block): bool 26 { 27 return $block instanceof Footnote; 28 } 29 30 public function isCode(): bool 31 { 32 return false; 33 } 34 35 public function matchesNextLine(Cursor $cursor): bool 36 { 37 return false; 38 } 39} 40