events/Classes/Service/DestinationDataImportService/CategoriesAssignment/Import.php

39 lines
802 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace WerkraumMedia\Events\Service\DestinationDataImportService\CategoriesAssignment;
use WerkraumMedia\Events\Domain\Model\Category;
final class Import
{
public function __construct(
private readonly ?Category $parentCategory,
private readonly ?int $pid,
private readonly array $categoryTitles,
private readonly bool $hideByDefault = false
) {
}
public function getParentCategory(): ?Category
{
return $this->parentCategory;
}
2022-08-03 08:41:54 +02:00
public function getPid(): ?int
{
return $this->pid;
}
public function getCategoryTitles(): array
{
return $this->categoryTitles;
}
public function getHideByDefault(): bool
{
return $this->hideByDefault;
}
}