<?php
/**
 * Front Matter Document
 *
 * Represents a parsed markdown document with YAML front matter.
 *
 * PHP version 8.2+
 *
 * @category Markdown
 * @package  IronKanban\Markdown
 * @author   Keith Solomon <keith@keithsolomon.net>
 * @license  Unlicense https://unlicense.org
 * @link     https://git.keithsolomon.net/keith/IronKanban
 */

declare(strict_types=1);

namespace IronKanban\Markdown;

/**
 * FrontMatterDocument represents a markdown document with YAML front matter
 *
 * @category Markdown
 * @package  IronKanban\Markdown
 * @author   Keith Solomon <keith@keithsolomon.net>
 * @license  Unlicense https://unlicense.org
 * @link     https://git.keithsolomon.net/keith/IronKanban
 */
class FrontMatterDocument {
    /**
     * Constructor for FrontMatterDocument
     *
     * @param array  $meta The front matter metadata.
     * @param string $body The document body content.
     */
    public function __construct( public array $meta, public string $body ) {
    }
}
