src/Entity/Page.php line 18
<?phpnamespace App\Entity;use App\Repository\PageRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Entity(repositoryClass=PageRepository::class)* @ORM\Table (name="page",* uniqueConstraints={* @ORM\UniqueConstraint(name="url_title",* columns={"url_title"})* }* ))*/#[ORM\Entity(repositoryClass: PageRepository::class)]class Page{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'pages')]#[ORM\JoinColumn(name:"page_status_code", referencedColumnName: "page_status_code", nullable: false)]private ?PageStatus $pageStatusCode = null;#[ORM\ManyToOne(inversedBy: 'pages')]#[ORM\JoinColumn(name:"page_type_code", referencedColumnName: "page_type_code", nullable:false)]private ?PageType $pageTypeCode = null;#[ORM\Column]private ?int $parentId = null;#[ORM\Column(length: 255)]private ?string $urlTitle = null;#[ORM\Column(length: 255)]private ?string $anchorText = null;#[ORM\Column(length: 255)]private ?string $title = null;#[ORM\Column(length: 255)]private ?string $description = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $body = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $updated = null;#[ORM\Column]private ?int $updatedBy = null;public function getId(): ?int{return $this->id;}public function getPageStatusCode(): ?PageStatus{return $this->pageStatusCode;}public function setPageStatusCode(?PageStatus $pageStatusCode): self{$this->pageStatusCode = $pageStatusCode;return $this;}public function getPageTypeCode(): ?PageType{return $this->pageTypeCode;}public function setPageTypeCode(?PageType $pageTypeCode): self{$this->pageTypeCode = $pageTypeCode;return $this;}public function getParentId(): ?int{return $this->parentId;}public function setParentId(int $parentId): self{$this->parentId = $parentId;return $this;}public function getUrlTitle(): ?string{return $this->urlTitle;}public function setUrlTitle(string $urlTitle): self{$this->urlTitle = $urlTitle;return $this;}public function getAnchorText(): ?string{return $this->anchorText;}public function setAnchorText(string $anchorText): self{$this->anchorText = $anchorText;return $this;}public function getTitle(): ?string{return $this->title;}public function setTitle(string $title): self{$this->title = $title;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(string $description): self{$this->description = $description;return $this;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): self{$this->body = $body;return $this;}public function getUpdated(): ?\DateTimeInterface{return $this->updated;}public function setUpdated(\DateTimeInterface $updated): self{$this->updated = $updated;return $this;}public function getUpdatedBy(): ?int{return $this->updatedBy;}public function setUpdatedBy(int $updatedBy): self{$this->updatedBy = $updatedBy;return $this;}}