src/Entity/Page.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\PageRepository")
  7.  */
  8. class Page
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $template="default";
  20.     /**
  21.      * @ORM\Column(type="boolean", nullable=true)
  22.      */
  23.     private $contentEditable;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $slug;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $title;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $metaTitle;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $description;
  40.     /**
  41.      * @ORM\Column(type="text", nullable=true)
  42.      */
  43.     private $content;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function setId($id)
  49.     {
  50.         $this->id $id;
  51.     }
  52.     public function getTemplate(): ?string
  53.     {
  54.         return $this->template;
  55.     }
  56.     public function setTemplate(?string $template): self
  57.     {
  58.         $this->template $template;
  59.         return $this;
  60.     }
  61.     /**
  62.      * @return mixed
  63.      */
  64.     public function getContentEditable()
  65.     {
  66.         return $this->contentEditable;
  67.     }
  68.     /**
  69.      * @param mixed $content
  70.      */
  71.     public function setContentEditable($contentEditable)
  72.     {
  73.         $this->contentEditable $contentEditable;
  74.     }
  75.     /**
  76.      * @param mixed $slug
  77.      */
  78.     public function setSlug($slug)
  79.     {
  80.         $this->slug $slug;
  81.     }
  82.     /**
  83.      * @return mixed
  84.      */
  85.     public function getSlug()
  86.     {
  87.         return $this->slug;
  88.     }
  89.     /**
  90.      * @return mixed
  91.      */
  92.     public function getTitle()
  93.     {
  94.         return $this->title;
  95.     }
  96.     /**
  97.      * @param mixed $title
  98.      */
  99.     public function setTitle($title)
  100.     {
  101.         $this->title $title;
  102.     }
  103.     /**
  104.      * @return mixed
  105.      */
  106.     public function getMetaTitle()
  107.     {
  108.         return $this->metaTitle;
  109.     }
  110.     /**
  111.      * @param mixed $metaTitle
  112.      */
  113.     public function setMetaTitle($metaTitle)
  114.     {
  115.         $this->metaTitle $metaTitle;
  116.     }
  117.     /**
  118.      * @return mixed
  119.      */
  120.     public function getDescription()
  121.     {
  122.         return $this->description;
  123.     }
  124.     /**
  125.      * @param mixed $description
  126.      */
  127.     public function setDescription($description)
  128.     {
  129.         $this->description $description;
  130.     }
  131.     /**
  132.      * @return mixed
  133.      */
  134.     public function getContent()
  135.     {
  136.         return $this->content;
  137.     }
  138.     /**
  139.      * @param mixed $content
  140.      */
  141.     public function setContent($content)
  142.     {
  143.         $this->content $content;
  144.     }
  145. }