<?php
/**
 * Value object describing a resolved email template.
 *
 * @package MailDoctor
 */

namespace MailDoctor\Email;

/**
 * Holds resolver results without altering rendering behaviour.
 */
class ResolvedTemplate {
	private Template $template;

	private string $locale;

	public function __construct( Template $template, string $locale ) {
		$this->template = $template;
		$this->locale   = $locale;
	}

	public function template(): Template {
		return $this->template;
	}

	public function locale(): string {
		return $this->locale;
	}
}
