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\Inline\Element\AbstractInline; 18use League\CommonMark\Reference\ReferenceInterface; 19 20/** 21 * Link from the footnote on the bottom of the document back to the reference 22 */ 23final class FootnoteBackref extends AbstractInline 24{ 25 /** @var ReferenceInterface */ 26 private $reference; 27 28 public function __construct(ReferenceInterface $reference) 29 { 30 $this->reference = $reference; 31 } 32 33 public function getReference(): ReferenceInterface 34 { 35 return $this->reference; 36 } 37} 38