Files
oai-symfony/typo3conf/ext/news/Classes/Event/NewsImportPreHydrateEvent.php
2026-07-03 17:53:31 +02:00

67 lines
1.3 KiB
PHP

<?php
namespace GeorgRinger\News\Event;
use GeorgRinger\News\Domain\Service\NewsImportService;
/**
* 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.
*/
final class NewsImportPreHydrateEvent
{
/**
* @var NewsImportService
*/
private $newsImportService;
/**
* @var array
*/
private $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;
}
}