<?php declare(strict_types=1);
namespace Nds\RecipeManager\Core\Content\Difficulty;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Nds\RecipeManager\Core\Content\Difficulty\Aggregate\DifficultyTranslation\DifficultyTranslationCollection;
class DifficultyEntity extends Entity
{
use EntityIdTrait;
/**
* @var string|null
*/
protected $name;
/**
* @var bool|null
*/
protected $active;
/**
* @var DifficultyTranslationCollection|null
*/
protected $translations;
/**
* @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 getActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): void
{
$this->active = $active;
}
public function getTranslations(): ?DifficultyTranslationCollection
{
return $this->translations;
}
public function setTranslations(?DifficultyTranslationCollection $translations): void
{
$this->translations = $translations;
}
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;
}
}