<?phpnamespace App\Entity\Person;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Uuid;use App\Entity\World;#[ORM\Entity]#[ORM\Table(name: 'persons')]class Person{ #[ORM\Id] #[ORM\Column(type: 'uuid', unique: true)] private $id; public function __construct() { $this->id = Uuid::v4(); } #[ORM\Column(type: 'string', length: 255)] private $name; #[ORM\Column(type: 'string', length: 255)] private $health; #[ORM\Column(type: 'integer')] private $money; #[ORM\Column(type: 'string', length: 255)] private $spec; #[ORM\ManyToOne(targetEntity: World::class)] #[ORM\JoinColumn(nullable: false)] private $world; #[ORM\Column(type: 'text', nullable: false, options: ['default' => ''])] private string $description = ''; // Getters and setters public function getId(): ?string { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getHealth(): ?string { return $this->health; } public function setHealth(string $health): self { $this->health = $health; return $this; } public function getMoney(): ?int { return $this->money; } public function setMoney(int $money): self { $this->money = $money; return $this; } public function getSpec(): ?string { return $this->spec; } public function setSpec(string $spec): self { $this->spec = $spec; return $this; } public function getWorld(): ?World { return $this->world; } public function setWorld(?World $world): self { $this->world = $world; return $this; } public function getDescription(): string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; }}