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\Node\Block\AbstractBlock; 18use League\CommonMark\Reference\ReferenceInterface; 19use League\CommonMark\Reference\ReferenceableInterface; 20 21final class Footnote extends AbstractBlock implements ReferenceableInterface 22{ 23 /** @psalm-readonly */ 24 private ReferenceInterface $reference; 25 26 public function __construct(ReferenceInterface $reference) 27 { 28 parent::__construct(); 29 30 $this->reference = $reference; 31 } 32 33 public function getReference(): ReferenceInterface 34 { 35 return $this->reference; 36 } 37} 38