src/Entity/WorkroomSectionRevision.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WorkroomSectionRevisionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassWorkroomSectionRevisionRepository::class)]
  6. class WorkroomSectionRevision
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $name;
  14.     #[ORM\Column(type'text')]
  15.     private $text;
  16.     #[ORM\Column(type'datetime_immutable')]
  17.     private $createdAt;
  18.     #[ORM\Column(type'datetime_immutable')]
  19.     private $updatedAt;
  20.     #[ORM\ManyToOne(targetEntityWorkroomRevision::class, inversedBy'workroomSectionRevisions')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private $workroomRevision;
  23.     #[ORM\Column(type'integer'nullabletrue)]
  24.     private $parentId;
  25.     #[ORM\Column(type'smallint')]
  26.     private $level;
  27.     #[ORM\Column(type'smallint')]
  28.     private $position;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getName(): ?string
  34.     {
  35.         return $this->name;
  36.     }
  37.     public function setName(string $name): self
  38.     {
  39.         $this->name $name;
  40.         return $this;
  41.     }
  42.     public function getText(): ?string
  43.     {
  44.         return $this->text;
  45.     }
  46.     public function setText(string $text): self
  47.     {
  48.         $this->text $text;
  49.         return $this;
  50.     }
  51.     public function getCreatedAt(): ?\DateTimeImmutable
  52.     {
  53.         return $this->createdAt;
  54.     }
  55.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  56.     {
  57.         $this->createdAt $createdAt;
  58.         return $this;
  59.     }
  60.     public function getUpdatedAt(): ?\DateTimeImmutable
  61.     {
  62.         return $this->updatedAt;
  63.     }
  64.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  65.     {
  66.         $this->updatedAt $updatedAt;
  67.         return $this;
  68.     }
  69.     public function getWorkroomRevision(): ?WorkroomRevision
  70.     {
  71.         return $this->workroomRevision;
  72.     }
  73.     public function setWorkroomRevision(?WorkroomRevision $workroomRevision): self
  74.     {
  75.         $this->workroomRevision $workroomRevision;
  76.         return $this;
  77.     }
  78.     public function getParentId(): ?int
  79.     {
  80.         return $this->parentId;
  81.     }
  82.     public function setParentId(?int $parentId): self
  83.     {
  84.         $this->parentId $parentId;
  85.         return $this;
  86.     }
  87.     public function getLevel(): ?int
  88.     {
  89.         return $this->level;
  90.     }
  91.     public function setLevel(int $level): self
  92.     {
  93.         $this->level $level;
  94.         return $this;
  95.     }
  96.     public function getPosition(): ?int
  97.     {
  98.         return $this->position;
  99.     }
  100.     public function setPosition(int $position): self
  101.     {
  102.         $this->position $position;
  103.         return $this;
  104.     }
  105. }