src/Entity/Pages.php line 16

Open in your IDE?
  1. <?php
  2. // src//App/Entity/Pages.php
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use App\Entity\User as User;
  7. use Gedmo\Sortable\Entity\Repository\SortableRepository;
  8. /**
  9.  * Pages
  10.  *
  11.  * @ORM\Table()
  12.  * @ORM\Entity(repositoryClass="App\Repository\PagesRepository")
  13.  */
  14. class Pages
  15. {
  16.     /**
  17.      * @var integer
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="name", type="string", length=255)
  28.      */
  29.     private $name;
  30.     /**
  31.      * @var string
  32.      * @Gedmo\Slug(fields={"name"}, updatable=false)
  33.      * @ORM\Column(name="slug", type="string", length=255, unique=true)
  34.      */
  35.     private $slug;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  40.      */
  41.     private $type;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="metaTitle", type="text", nullable=true)
  46.      */
  47.     private $metaTitle;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="metaKeywords", type="text", nullable=true)
  52.      */
  53.     private $metaKeywords;
  54.     /**
  55.      * @var string
  56.      *
  57.      * @ORM\Column(name="metaDescription", type="text", nullable=true)
  58.      */
  59.     private $metaDescription;
  60.     /**
  61.      * @var string
  62.      *
  63.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  64.      */
  65.     private $title;
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="content", type="text", nullable=true)
  70.      */
  71.     private $content;
  72.      /**
  73.      * @ORM\ManyToOne(targetEntity="Features")
  74.      * @ORM\JoinColumn(name="feature1_id", referencedColumnName="id")
  75.      **/
  76.     private $feature1;
  77.     /**
  78.      * @ORM\ManyToOne(targetEntity="Features")
  79.      * @ORM\JoinColumn(name="feature2_id", referencedColumnName="id")
  80.      **/
  81.     private $feature2;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity="Features")
  84.      * @ORM\JoinColumn(name="feature3_id", referencedColumnName="id")
  85.      **/
  86.     private $feature3;
  87.     /**
  88.      * @Gedmo\SortablePosition
  89.      * @ORM\Column(name="position", type="integer")
  90.      */
  91.     private $position;
  92.     /**
  93.      * @Gedmo\SortableGroup
  94.      * @ORM\Column(name="category", type="string", length=128)
  95.      */
  96.     private $category;
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(name="bannerImage", type="string", length=255, nullable=true)
  101.      */
  102.     private $bannerImage;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(name="bannerContent", type="text", nullable=true)
  107.      */
  108.     private $bannerContent;
  109.     /**
  110.      * @ORM\Column(name="publish", type="boolean", nullable=true)
  111.      */
  112.     private $publish false;
  113.     /**
  114.      * @Gedmo\Timestampable(on="create")
  115.      * @ORM\Column(type="datetime")
  116.      */
  117.     private $created;
  118.     /**
  119.      * @Gedmo\Timestampable(on="update")
  120.      * @ORM\Column(type="datetime")
  121.      */
  122.     private $updated;
  123.     /**
  124.      * @var User $createdBy
  125.      *
  126.      * @Gedmo\Blameable(on="create")
  127.      * @ORM\ManyToOne(targetEntity="User")
  128.      * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  129.      */
  130.     private $createdBy;
  131.     /**
  132.      * @var User $updatedBy
  133.      *
  134.      * @Gedmo\Blameable(on="update")
  135.      * @ORM\ManyToOne(targetEntity="User")
  136.      * @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
  137.      */
  138.     private $updatedBy;
  139.     /**
  140.      * Get id
  141.      *
  142.      * @return integer
  143.      */
  144.     public function getId()
  145.     {
  146.         return $this->id;
  147.     }
  148.     /**
  149.      * Set name
  150.      *
  151.      * @param string $name
  152.      * @return Pages
  153.      */
  154.     public function setName($name)
  155.     {
  156.         $this->name $name;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get name
  161.      *
  162.      * @return string
  163.      */
  164.     public function getName()
  165.     {
  166.         return $this->name;
  167.     }
  168.     /**
  169.      * Set title
  170.      *
  171.      * @param string $title
  172.      * @return Pages
  173.      */
  174.     public function setTitle($title)
  175.     {
  176.         $this->title $title;
  177.         return $this;
  178.     }
  179.     /**
  180.      * Get title
  181.      *
  182.      * @return string
  183.      */
  184.     public function getTitle()
  185.     {
  186.         return $this->title;
  187.     }
  188.     /**
  189.      * Set keywords
  190.      *
  191.      * @param string $keywords
  192.      * @return Pages
  193.      */
  194.     public function setKeywords($keywords)
  195.     {
  196.         $this->keywords $keywords;
  197.         return $this;
  198.     }
  199.     /**
  200.      * Get keywords
  201.      *
  202.      * @return string
  203.      */
  204.     public function getKeywords()
  205.     {
  206.         return $this->keywords;
  207.     }
  208.     /**
  209.      * Set description
  210.      *
  211.      * @param string $description
  212.      * @return Pages
  213.      */
  214.     public function setDescription($description)
  215.     {
  216.         $this->description $description;
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get description
  221.      *
  222.      * @return string
  223.      */
  224.     public function getDescription()
  225.     {
  226.         return $this->description;
  227.     }
  228.     /**
  229.      * Set metaTitle
  230.      *
  231.      * @param string $metaTitle
  232.      * @return Pages
  233.      */
  234.     public function setMetaTitle($metaTitle)
  235.     {
  236.         $this->metaTitle $metaTitle;
  237.         return $this;
  238.     }
  239.     /**
  240.      * Get metaTitle
  241.      *
  242.      * @return string
  243.      */
  244.     public function getMetaTitle()
  245.     {
  246.         return $this->metaTitle;
  247.     }
  248.     /**
  249.      * Set metaKeywords
  250.      *
  251.      * @param string $metaKeywords
  252.      * @return Pages
  253.      */
  254.     public function setMetaKeywords($metaKeywords)
  255.     {
  256.         $this->metaKeywords $metaKeywords;
  257.         return $this;
  258.     }
  259.     /**
  260.      * Get metaKeywords
  261.      *
  262.      * @return string
  263.      */
  264.     public function getMetaKeywords()
  265.     {
  266.         return $this->metaKeywords;
  267.     }
  268.     /**
  269.      * Set metaDescription
  270.      *
  271.      * @param string $metaDescription
  272.      * @return Pages
  273.      */
  274.     public function setMetaDescription($metaDescription)
  275.     {
  276.         $this->metaDescription $metaDescription;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Get metaDescription
  281.      *
  282.      * @return string
  283.      */
  284.     public function getMetaDescription()
  285.     {
  286.         return $this->metaDescription;
  287.     }
  288.     /**
  289.      * Set content
  290.      *
  291.      * @param string $content
  292.      * @return Pages
  293.      */
  294.     public function setContent($content)
  295.     {
  296.         $this->content $content;
  297.         return $this;
  298.     }
  299.     /**
  300.      * Get content
  301.      *
  302.      * @return string
  303.      */
  304.     public function getContent()
  305.     {
  306.         return $this->content;
  307.     }
  308.     /**
  309.      * Set type
  310.      *
  311.      * @param string $type
  312.      * @return Pages
  313.      */
  314.     public function setType($type)
  315.     {
  316.         $this->type $type;
  317.         return $this;
  318.     }
  319.     /**
  320.      * Get type
  321.      *
  322.      * @return string
  323.      */
  324.     public function getType()
  325.     {
  326.         return $this->type;
  327.     }
  328.     public function setSlug($slug)
  329.     {
  330.         $this->slug $slug;
  331.     }
  332.     /**
  333.      * Get slug
  334.      *
  335.      * @return string
  336.      */
  337.     public function getSlug()
  338.     {
  339.         return $this->slug;
  340.     }
  341.     /**
  342.      * Set created
  343.      *
  344.      * @param \DateTime $created
  345.      * @return Pages
  346.      */
  347.     public function setCreated($created)
  348.     {
  349.         $this->created $created;
  350.         return $this;
  351.     }
  352.     /**
  353.      * Get created
  354.      *
  355.      * @return \DateTime
  356.      */
  357.     public function getCreated()
  358.     {
  359.         return $this->created;
  360.     }
  361.     /**
  362.      * Set updated
  363.      *
  364.      * @param \DateTime $updated
  365.      * @return Pages
  366.      */
  367.     public function setUpdated($updated)
  368.     {
  369.         $this->updated $updated;
  370.         return $this;
  371.     }
  372.     /**
  373.      * Get updated
  374.      *
  375.      * @return \DateTime
  376.      */
  377.     public function getUpdated()
  378.     {
  379.         return $this->updated;
  380.     }
  381.     public function setPosition($position)
  382.     {
  383.         $this->position $position;
  384.     }
  385.     public function getPosition()
  386.     {
  387.         return $this->position;
  388.     }
  389.     public function setCategory($category)
  390.     {
  391.         $this->category $category;
  392.     }
  393.     public function getCategory()
  394.     {
  395.         return $this->category;
  396.     }
  397.     /**
  398.      * Set publish
  399.      *
  400.      * @param boolean $publish
  401.      * @return Pages
  402.      */
  403.     public function setPublish($publish)
  404.     {
  405.         $this->publish $publish;
  406.         return $this;
  407.     }
  408.     /**
  409.      * Get publish
  410.      *
  411.      * @return boolean
  412.      */
  413.     public function getPublish()
  414.     {
  415.         return $this->publish;
  416.     }
  417.     /**
  418.      * Set feature1
  419.      *
  420.      * @param \App\Entity\Features $feature1
  421.      *
  422.      * @return Pages
  423.      */
  424.     public function setFeature1(\App\Entity\Features $feature1 null)
  425.     {
  426.         $this->feature1 $feature1;
  427.         return $this;
  428.     }
  429.     /**
  430.      * Get feature1
  431.      *
  432.      * @return \App\Entity\Features
  433.      */
  434.     public function getFeature1()
  435.     {
  436.         return $this->feature1;
  437.     }
  438.     /**
  439.      * Set feature2
  440.      *
  441.      * @param \App\Entity\Features $feature2
  442.      *
  443.      * @return Pages
  444.      */
  445.     public function setFeature2(\App\Entity\Features $feature2 null)
  446.     {
  447.         $this->feature2 $feature2;
  448.         return $this;
  449.     }
  450.     /**
  451.      * Get feature2
  452.      *
  453.      * @return \App\Entity\Features
  454.      */
  455.     public function getFeature2()
  456.     {
  457.         return $this->feature2;
  458.     }
  459.     /**
  460.      * Set feature3
  461.      *
  462.      * @param \App\Entity\Features $feature3
  463.      *
  464.      * @return Pages
  465.      */
  466.     public function setFeature3(\App\Entity\Features $feature3 null)
  467.     {
  468.         $this->feature3 $feature3;
  469.         return $this;
  470.     }
  471.     /**
  472.      * Get feature3
  473.      *
  474.      * @return \App\Entity\Features
  475.      */
  476.     public function getFeature3()
  477.     {
  478.         return $this->feature3;
  479.     }
  480.     /**
  481.      * Get createdBy
  482.      *
  483.      * @return \App\Entity\User
  484.      */
  485.     public function getCreatedBy()
  486.     {
  487.         return $this->createdBy;
  488.     }
  489.     /**
  490.      * Get updatedBy
  491.      *
  492.      * @return \App\Entity\User
  493.      */
  494.     public function getUpdatedBy()
  495.     {
  496.         return $this->updatedBy;
  497.     }
  498.     /**
  499.      * Set createdBy
  500.      *
  501.      * @param \App\Entity\User $createdBy
  502.      *
  503.      * @return Pages
  504.      */
  505.     public function setCreatedBy(\App\Entity\User $createdBy null)
  506.     {
  507.         $this->createdBy $createdBy;
  508.         return $this;
  509.     }
  510.     /**
  511.      * Set updatedBy
  512.      *
  513.      * @param \App\Entity\User $updatedBy
  514.      *
  515.      * @return Pages
  516.      */
  517.     public function setUpdatedBy(\App\Entity\User $updatedBy null)
  518.     {
  519.         $this->updatedBy $updatedBy;
  520.         return $this;
  521.     }
  522.     /**
  523.      * Set bannerImage
  524.      *
  525.      * @param string $bannerImage
  526.      * @return Pages
  527.      */
  528.     public function setBannerImage($bannerImage)
  529.     {
  530.         $this->bannerImage $bannerImage;
  531.         return $this;
  532.     }
  533.     /**
  534.      * Get bannerImage
  535.      *
  536.      * @return string
  537.      */
  538.     public function getBannerImage()
  539.     {
  540.         return $this->bannerImage;
  541.     }
  542.     /**
  543.      * Set bannerContent
  544.      *
  545.      * @param string $bannerContent
  546.      * @return Pages
  547.      */
  548.     public function setBannerContent($bannerContent)
  549.     {
  550.         $this->bannerContent $bannerContent;
  551.         return $this;
  552.     }
  553.     /**
  554.      * Get bannerContent
  555.      *
  556.      * @return string
  557.      */
  558.     public function getBannerContent()
  559.     {
  560.         return $this->bannerContent;
  561.     }
  562. }