<?php

/*
 * This file is part of the "news" Extension for TYPO3 CMS.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 */

namespace GeorgRinger\News\Event;

use GeorgRinger\News\Domain\Service\NewsImportService;

final class NewsImportPreHydrateEvent
{
    private NewsImportService $newsImportService;

    private array $importItem;

    public function __construct(NewsImportService $newsImportService, array $importItem)
    {
        $this->newsImportService = $newsImportService;
        $this->importItem = $importItem;
    }

    /**
     * Get the importer service
     */
    public function getNewsImportService(): NewsImportService
    {
        return $this->newsImportService;
    }

    /**
     * Set the importer service
     */
    public function setNewsImportService(NewsImportService $newsImportService): self
    {
        $this->newsImportService = $newsImportService;

        return $this;
    }

    /**
     * Get the importItem
     */
    public function getImportItem(): array
    {
        return $this->importItem;
    }

    /**
     * Set the importItem
     */
    public function setImportItem(array $importItem): self
    {
        $this->importItem = $importItem;

        return $this;
    }
}
