src/Entity/Page.php line 18

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PageRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PageRepository::class)
  8.  * @ORM\Table (name="page",
  9.  *    uniqueConstraints={
  10.  *        @ORM\UniqueConstraint(name="url_title",
  11.  *            columns={"url_title"})
  12.  *    }
  13.  * ))
  14.  */
  15. #[ORM\Entity(repositoryClassPageRepository::class)]
  16. class Page
  17. {
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue]
  20.     #[ORM\Column]
  21.     private ?int $id null;
  22.     #[ORM\ManyToOne(inversedBy'pages')]
  23.     #[ORM\JoinColumn(name:"page_status_code"referencedColumnName"page_status_code"nullablefalse)]
  24.     private ?PageStatus $pageStatusCode null;
  25.     #[ORM\ManyToOne(inversedBy'pages')]
  26.     #[ORM\JoinColumn(name:"page_type_code"referencedColumnName"page_type_code"nullable:false)]
  27.     private ?PageType $pageTypeCode null;
  28.     #[ORM\Column]
  29.     private ?int $parentId null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $urlTitle null;
  32.     #[ORM\Column(length255)]
  33.     private ?string $anchorText null;
  34.     #[ORM\Column(length255)]
  35.     private ?string $title null;
  36.     #[ORM\Column(length255)]
  37.     private ?string $description null;
  38.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  39.     private ?string $body null;
  40.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  41.     private ?\DateTimeInterface $updated null;
  42.     #[ORM\Column]
  43.     private ?int $updatedBy null;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getPageStatusCode(): ?PageStatus
  49.     {
  50.         return $this->pageStatusCode;
  51.     }
  52.     public function setPageStatusCode(?PageStatus $pageStatusCode): self
  53.     {
  54.         $this->pageStatusCode $pageStatusCode;
  55.         return $this;
  56.     }
  57.     public function getPageTypeCode(): ?PageType
  58.     {
  59.         return $this->pageTypeCode;
  60.     }
  61.     public function setPageTypeCode(?PageType $pageTypeCode): self
  62.     {
  63.         $this->pageTypeCode $pageTypeCode;
  64.         return $this;
  65.     }
  66.     public function getParentId(): ?int
  67.     {
  68.         return $this->parentId;
  69.     }
  70.     public function setParentId(int $parentId): self
  71.     {
  72.         $this->parentId $parentId;
  73.         return $this;
  74.     }
  75.     public function getUrlTitle(): ?string
  76.     {
  77.         return $this->urlTitle;
  78.     }
  79.     public function setUrlTitle(string $urlTitle): self
  80.     {
  81.         $this->urlTitle $urlTitle;
  82.         return $this;
  83.     }
  84.     public function getAnchorText(): ?string
  85.     {
  86.         return $this->anchorText;
  87.     }
  88.     public function setAnchorText(string $anchorText): self
  89.     {
  90.         $this->anchorText $anchorText;
  91.         return $this;
  92.     }
  93.     public function getTitle(): ?string
  94.     {
  95.         return $this->title;
  96.     }
  97.     public function setTitle(string $title): self
  98.     {
  99.         $this->title $title;
  100.         return $this;
  101.     }
  102.     public function getDescription(): ?string
  103.     {
  104.         return $this->description;
  105.     }
  106.     public function setDescription(string $description): self
  107.     {
  108.         $this->description $description;
  109.         return $this;
  110.     }
  111.     public function getBody(): ?string
  112.     {
  113.         return $this->body;
  114.     }
  115.     public function setBody(?string $body): self
  116.     {
  117.         $this->body $body;
  118.         return $this;
  119.     }
  120.     public function getUpdated(): ?\DateTimeInterface
  121.     {
  122.         return $this->updated;
  123.     }
  124.     public function setUpdated(\DateTimeInterface $updated): self
  125.     {
  126.         $this->updated $updated;
  127.         return $this;
  128.     }
  129.     public function getUpdatedBy(): ?int
  130.     {
  131.         return $this->updatedBy;
  132.     }
  133.     public function setUpdatedBy(int $updatedBy): self
  134.     {
  135.         $this->updatedBy $updatedBy;
  136.         return $this;
  137.     }
  138. }