mirror of
https://github.com/werkraum-media/events.git
synced 2024-10-22 22:56:09 +02:00
38 lines
802 B
PHP
38 lines
802 B
PHP
<?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;
|
|
}
|
|
|
|
public function getPid(): ?int
|
|
{
|
|
return $this->pid;
|
|
}
|
|
|
|
public function getCategoryTitles(): array
|
|
{
|
|
return $this->categoryTitles;
|
|
}
|
|
|
|
public function getHideByDefault(): bool
|
|
{
|
|
return $this->hideByDefault;
|
|
}
|
|
}
|