src/Entity/Page.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\PageRepository")
  6.  */
  7. class Page
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=512)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="text", nullable=true)
  21.      */
  22.     private $body;
  23.     /**
  24.      * @ORM\Column(type="boolean")
  25.      */
  26.     private $status;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=User::class)
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $user;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     private $created;
  36.     /**
  37.      * @ORM\Column(type="string", length=32)
  38.      */
  39.     private $template;
  40.     /**
  41.      * @ORM\Column(type="boolean", nullable=true)
  42.      */
  43.     private $noindex;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $meta_title;
  48.     /**
  49.      * @ORM\Column(type="string", length=1024, nullable=true)
  50.      */
  51.     private $meta_description;
  52.     /**
  53.      * @ORM\OneToOne(targetEntity=Path::class, cascade={"persist", "remove"}, fetch="EAGER")
  54.      * @ORM\JoinColumn(nullable=true)
  55.      */
  56.     private $path;
  57.     private $url;
  58.     public function getUrl(): ?string
  59.     {
  60.         return $this->url;
  61.     }
  62.     public function setUrl(?string $url): self
  63.     {
  64.         $this->url $url;
  65.         return $this;
  66.     }
  67.     public function getId(): ?int
  68.     {
  69.         return $this->id;
  70.     }
  71.     public function getName(): ?string
  72.     {
  73.         return $this->name;
  74.     }
  75.     public function setName(string $name): self
  76.     {
  77.         $this->name $name;
  78.         return $this;
  79.     }
  80.     public function getBody(): ?string
  81.     {
  82.         return $this->body;
  83.     }
  84.     public function setBody(?string $body): self
  85.     {
  86.         $this->body $body;
  87.         return $this;
  88.     }
  89.     public function getStatus(): ?bool
  90.     {
  91.         return $this->status;
  92.     }
  93.     public function setStatus(bool $status): self
  94.     {
  95.         $this->status $status;
  96.         return $this;
  97.     }
  98.     public function getUser(): ?User
  99.     {
  100.         return $this->user;
  101.     }
  102.     public function setUser(?User $user): self
  103.     {
  104.         $this->user $user;
  105.         return $this;
  106.     }
  107.     public function getCreated(): ?int
  108.     {
  109.         return $this->created;
  110.     }
  111.     public function setCreated(int $created): self
  112.     {
  113.         $this->created $created;
  114.         return $this;
  115.     }
  116.     public function getTemplate(): ?string
  117.     {
  118.         return $this->template;
  119.     }
  120.     public function setTemplate(string $template): self
  121.     {
  122.         $this->template $template;
  123.         return $this;
  124.     }
  125.     public function getNoindex(): ?bool
  126.     {
  127.         return $this->noindex;
  128.     }
  129.     public function setNoindex(?bool $noindex): self
  130.     {
  131.         $this->noindex $noindex;
  132.         return $this;
  133.     }
  134.     public function getMetaTitle(): ?string
  135.     {
  136.         return $this->meta_title;
  137.     }
  138.     public function setMetaTitle(?string $meta_title): self
  139.     {
  140.         $this->meta_title $meta_title;
  141.         return $this;
  142.     }
  143.     public function getMetaDescription(): ?string
  144.     {
  145.         return $this->meta_description;
  146.     }
  147.     public function setMetaDescription(?string $meta_description): self
  148.     {
  149.         $this->meta_description $meta_description;
  150.         return $this;
  151.     }
  152.     public function getPath(): ?Path
  153.     {
  154.         return $this->path;
  155.     }
  156.     public function setPath(?Path $path): self
  157.     {
  158.         $this->path $path;
  159.         return $this;
  160.     }
  161. }