<?php declare(strict_types=1);
namespace Nds\RecipeManager\Core\Content\Category;
use Shopware\Core\Content\Media\MediaEntity;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Nds\RecipeManager\Core\Content\Recipe\RecipeCollection;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Nds\RecipeManager\Core\Content\Category\Aggregate\CategoryTranslation\CategoryTranslationCollection;
class CategoryEntity extends Entity
{
use EntityIdTrait;
/**
* @var string|null
*/
protected $name;
/**
* @var string|null
*/
protected $subhead;
/**
* @var string|null
*/
protected $description;
/**
* @var string|null
*/
protected $metaTitle;
/**
* @var string|null
*/
protected $metaDescription;
/**
* @var string|null
*/
protected $slug;
/**
* @var string|null
*/
protected $robots;
/**
* @var bool|null
*/
protected $active;
/**
* @var CategoryTranslationCollection|null
*/
protected $translations;
/**
* @var RecipeCollection|null
*/
protected $recipes;
/**
* @var MediaEntity|null
*/
protected $media;
/**
* @var string|null
*/
protected $mediaId;
/**
* @var \DateTimeInterface|null
*/
protected $createdAt;
/**
* @var \DateTimeInterface|null
*/
protected $updatedAt;
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): void
{
$this->name = $name;
}
public function getSubhead(): ?string
{
return $this->subhead;
}
public function setSubhead(string $subhead): void
{
$this->subhead = $subhead;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): void
{
$this->description = $description;
}
public function getMetaTitle(): string
{
return $this->metaTitle;
}
public function setMetaTitle(string $metaTitle): void
{
$this->metaTitle = $metaTitle;
}
public function getMetaDescription(): string
{
return $this->metaDescription;
}
public function setMetaDescription(string $metaDescription): void
{
$this->metaDescription = $metaDescription;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(string $slug): void
{
$this->slug = $slug;
}
public function getRobots(): ?string
{
return $this->robots;
}
public function setRobots(?string $robots): void
{
$this->robots = $robots;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): void
{
$this->active = $active;
}
public function getTranslations(): ?CategoryTranslationCollection
{
return $this->translations;
}
public function setTranslations(CategoryTranslationCollection $translations): void
{
$this->translations = $translations;
}
public function getRecipes(): ?RecipeCollection
{
return $this->recipes;
}
public function setRecipes(RecipeCollection $recipes): void
{
$this->recipes = $recipes;
}
public function getMedia(): ?MediaEntity
{
return $this->media;
}
public function setMedia(?MediaEntity $media): void
{
$this->media = $media;
}
public function getMediaId(): ?string
{
return $this->mediaId;
}
public function setMediaId(?string $mediaId): void
{
$this->mediaId = $mediaId;
}
public function getCreatedAt(): \DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): void
{
$this->createdAt = $createdAt;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
{
$this->updatedAt = $updatedAt;
}
}