<?php

namespace RTMMailComposer\Renderer;

use RTMMailComposer\ContextBuilder\ContextBuilderRegistry;
use RTMMailComposer\Model\CustomMail;
use RTMMailComposer\Model\EmailSection;

abstract class AbstractEmailRenderer implements EmailRendererInterface
{


    public function __construct(protected ContextBuilderRegistry $contextBuilder)
    {
    }

    abstract protected function matchesCondition(EmailSection $emailSection, array $context, CustomMail $mail): bool;
}
