. */ declare(strict_types=1); namespace Fisharebest\Webtrees\CommonMark; use Fisharebest\Webtrees\GedcomRecord; use League\CommonMark\Inline\Element\AbstractStringContainer; /** * Convert XREFs within markdown text to links */ class XrefNode extends AbstractStringContainer { private GedcomRecord $record; /** * XrefNode constructor. * * @param GedcomRecord $record */ public function __construct(GedcomRecord $record) { parent::__construct(); $this->record = $record; } public function record(): GedcomRecord { return $this->record; } }