<?php
namespace App\Entity\Page;
use App\Entity\Page\Page;
use App\Repository\Page\ContentGroupPageRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContentGroupPageRepository::class)]
class ContentGroupPage
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'contentGroupPages')]
private ?ContentGroup $contentGroup = null;
#[ORM\ManyToOne(inversedBy: 'contentGroupPages')]
private ?Page $page = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $role = null;
#[ORM\Column(nullable: true)]
private ?int $placement = null;
public function getId(): ?int
{
return $this->id;
}
public function getContentGroup(): ?ContentGroup
{
return $this->contentGroup;
}
public function setContentGroup(?ContentGroup $contentGroup): static
{
$this->contentGroup = $contentGroup;
return $this;
}
public function getPage(): ?Page
{
return $this->page;
}
public function setPage(?Page $page): static
{
$this->page = $page;
return $this;
}
public function getRole(): ?string
{
return $this->role;
}
public function setRole(?string $role): static
{
$this->role = $role;
return $this;
}
public function getPlacement(): ?int
{
return $this->placement;
}
public function setPlacement(?int $placement): static
{
$this->placement = $placement;
return $this;
}
}