<?phpnamespace App\Entity;use App\Utils\Media;use DateTimeImmutable;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass="App\Repository\PageDesignContentRepository") */class PageDesignContent extends Media{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text", nullable=true) */ private $content; /** * @ORM\ManyToOne(targetEntity="App\Entity\PageDesign", inversedBy="pageDesignContents") */ private $pageDesign; /** * @ORM\Column(type="integer", nullable=true) */ private $sequence; /** * @ORM\PostLoad */ public function init() { $this->type = Media::PAGE_DESIGN; } public function getId(): ?int { return $this->id; } /** * @return string|null */ public function getContent(): ?string { return $this->content; } /** * @param string $content * @return $this */ public function setContent(string $content): self { $this->content = $content; return $this; } /** * @return mixed */ public function getPageDesign() { return $this->pageDesign; } /** * @param mixed $pageDesign */ public function setPageDesign($pageDesign): void { $this->pageDesign = $pageDesign; } /** * @return mixed */ public function getSequence() { return $this->sequence; } /** * @param mixed $sequence */ public function setSequence($sequence): void { $this->sequence = $sequence; }}