<?php

namespace App\Services;

class PublicLandingPageTrackingDocument
{
    public function __construct(private LandingPagePixelInjector $pixelInjector) {}

    public function apply(
        string $html,
        ?string $utmSource,
        ?string $googleSendTo,
        ?string $metaPixelId,
    ): string {
        return $this->pixelInjector->injectIntoHtml(
            $html,
            $utmSource,
            $googleSendTo,
            $metaPixelId,
        );
    }
}
