<?php

namespace Velis\Pdf;

/**
 * @author Jan Małysiak <jan.malysiak@velis.pl>
 */
class RenderedDocument implements RenderableInterface
{
    private string $content;

    /**
     * @param string $renderedContent
     */
    public function __construct(string $renderedContent)
    {
        $this->content = $renderedContent;
    }

    /**
     * {@inheritDoc}
     */
    public function render(): string
    {
        return $this->content;
    }
}
