<?phpnamespace App\Entity;use App\Repository\WorkroomSectionRevisionRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: WorkroomSectionRevisionRepository::class)]class WorkroomSectionRevision{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255)] private $name; #[ORM\Column(type: 'text')] private $text; #[ORM\Column(type: 'datetime_immutable')] private $createdAt; #[ORM\Column(type: 'datetime_immutable')] private $updatedAt; #[ORM\ManyToOne(targetEntity: WorkroomRevision::class, inversedBy: 'workroomSectionRevisions')] #[ORM\JoinColumn(nullable: false)] private $workroomRevision; #[ORM\Column(type: 'integer', nullable: true)] private $parentId; #[ORM\Column(type: 'smallint')] private $level; #[ORM\Column(type: 'smallint')] private $position; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getText(): ?string { return $this->text; } public function setText(string $text): self { $this->text = $text; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeImmutable { return $this->updatedAt; } public function setUpdatedAt(\DateTimeImmutable $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getWorkroomRevision(): ?WorkroomRevision { return $this->workroomRevision; } public function setWorkroomRevision(?WorkroomRevision $workroomRevision): self { $this->workroomRevision = $workroomRevision; return $this; } public function getParentId(): ?int { return $this->parentId; } public function setParentId(?int $parentId): self { $this->parentId = $parentId; return $this; } public function getLevel(): ?int { return $this->level; } public function setLevel(int $level): self { $this->level = $level; return $this; } public function getPosition(): ?int { return $this->position; } public function setPosition(int $position): self { $this->position = $position; return $this; }}