src/Entity/Page/ContentGroupPage.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Page;
  3. use App\Entity\Page\Page;
  4. use App\Repository\Page\ContentGroupPageRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassContentGroupPageRepository::class)]
  7. class ContentGroupPage
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'contentGroupPages')]
  14.     private ?ContentGroup $contentGroup null;
  15.     #[ORM\ManyToOne(inversedBy'contentGroupPages')]
  16.     private ?Page $page null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $role null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?int $placement null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getContentGroup(): ?ContentGroup
  26.     {
  27.         return $this->contentGroup;
  28.     }
  29.     public function setContentGroup(?ContentGroup $contentGroup): static
  30.     {
  31.         $this->contentGroup $contentGroup;
  32.         return $this;
  33.     }
  34.     public function getPage(): ?Page
  35.     {
  36.         return $this->page;
  37.     }
  38.     public function setPage(?Page $page): static
  39.     {
  40.         $this->page $page;
  41.         return $this;
  42.     }
  43.     public function getRole(): ?string
  44.     {
  45.         return $this->role;
  46.     }
  47.     public function setRole(?string $role): static
  48.     {
  49.         $this->role $role;
  50.         return $this;
  51.     }
  52.     public function getPlacement(): ?int
  53.     {
  54.         return $this->placement;
  55.     }
  56.     public function setPlacement(?int $placement): static
  57.     {
  58.         $this->placement $placement;
  59.         return $this;
  60.     }
  61. }