Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user