<?php

declare(strict_types=1);

namespace App\Message;

final class MajesticReportFetched
{
    /**
     * @var string
     */
    private $domain;
    /**
     * @var \DateTimeImmutable
     */
    private $when;
    /**
     * @var string
     */
    private $report;
    /**
     * @var string
     */
    private $url;

    public function __construct(string $domain, string $url, \DateTimeImmutable $when, string $report)
    {
        $this->domain = $domain;
        $this->when = $when;
        $this->report = $report;
        $this->url = $url;
    }

    /**
     * @return \DateTimeImmutable
     */
    public function getWhen(): \DateTimeImmutable
    {
        return $this->when;
    }

    /**
     * @return string
     */
    public function getReport(): string
    {
        return $this->report;
    }

    /**
     * @return string
     */
    public function getDomain(): string
    {
        return $this->domain;
    }

    /**
     * @return string
     */
    public function getUrl(): string
    {
        return $this->url;
    }
}
