<?phpnamespace App\Entity;use App\Entity\World;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity]#[ORM\Table(name: "tag")]class Tag{ #[ORM\Id] #[ORM\Column(type: 'uuid', unique: true)] private $id; #[ORM\ManyToOne(targetEntity: World::class)] #[ORM\JoinColumn(nullable: false)] private $world; #[ORM\Column(type: "string", length: 255)] private $name; #[ORM\Column(type: "text", nullable: true)] private $description; #[ORM\Column(type: "string", length: 255, nullable: true)] private $shortDescription; #[ORM\Column(type: "string", length: 50)] private $type; public function __construct( string $name, ?string $description = null, ?string $shortDescription = null, ) { $this->name = $name; $this->description = $description; $this->shortDescription = $shortDescription; $this->type = 0; } public function getId(): ?int { return $this->id; } public function getName(): string { return $this->name; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getShortDescription(): ?string { return $this->shortDescription; } public function setShortDescription(?string $shortDescription): self { $this->shortDescription = $shortDescription; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function setName(string $name): self { $this->name = $name; return $this; } public function getWorld(): ?World { return $this->world; } public function setWorld(?World $world): self { $this->world = $world; return $this; }}