<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PageRepository")
*/
class Page
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=512)
*/
private $name;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $body;
/**
* @ORM\Column(type="boolean")
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="integer")
*/
private $created;
/**
* @ORM\Column(type="string", length=32)
*/
private $template;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $noindex;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $meta_title;
/**
* @ORM\Column(type="string", length=1024, nullable=true)
*/
private $meta_description;
/**
* @ORM\OneToOne(targetEntity=Path::class, cascade={"persist", "remove"}, fetch="EAGER")
* @ORM\JoinColumn(nullable=true)
*/
private $path;
private $url;
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getBody(): ?string
{
return $this->body;
}
public function setBody(?string $body): self
{
$this->body = $body;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCreated(): ?int
{
return $this->created;
}
public function setCreated(int $created): self
{
$this->created = $created;
return $this;
}
public function getTemplate(): ?string
{
return $this->template;
}
public function setTemplate(string $template): self
{
$this->template = $template;
return $this;
}
public function getNoindex(): ?bool
{
return $this->noindex;
}
public function setNoindex(?bool $noindex): self
{
$this->noindex = $noindex;
return $this;
}
public function getMetaTitle(): ?string
{
return $this->meta_title;
}
public function setMetaTitle(?string $meta_title): self
{
$this->meta_title = $meta_title;
return $this;
}
public function getMetaDescription(): ?string
{
return $this->meta_description;
}
public function setMetaDescription(?string $meta_description): self
{
$this->meta_description = $meta_description;
return $this;
}
public function getPath(): ?Path
{
return $this->path;
}
public function setPath(?Path $path): self
{
$this->path = $path;
return $this;
}
}