<?php
// src//App/Entity/Pages.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use App\Entity\User as User;
use Gedmo\Sortable\Entity\Repository\SortableRepository;
/**
* Pages
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\PagesRepository")
*/
class Pages
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @var string
* @Gedmo\Slug(fields={"name"}, updatable=false)
* @ORM\Column(name="slug", type="string", length=255, unique=true)
*/
private $slug;
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255, nullable=true)
*/
private $type;
/**
* @var string
*
* @ORM\Column(name="metaTitle", type="text", nullable=true)
*/
private $metaTitle;
/**
* @var string
*
* @ORM\Column(name="metaKeywords", type="text", nullable=true)
*/
private $metaKeywords;
/**
* @var string
*
* @ORM\Column(name="metaDescription", type="text", nullable=true)
*/
private $metaDescription;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="content", type="text", nullable=true)
*/
private $content;
/**
* @ORM\ManyToOne(targetEntity="Features")
* @ORM\JoinColumn(name="feature1_id", referencedColumnName="id")
**/
private $feature1;
/**
* @ORM\ManyToOne(targetEntity="Features")
* @ORM\JoinColumn(name="feature2_id", referencedColumnName="id")
**/
private $feature2;
/**
* @ORM\ManyToOne(targetEntity="Features")
* @ORM\JoinColumn(name="feature3_id", referencedColumnName="id")
**/
private $feature3;
/**
* @Gedmo\SortablePosition
* @ORM\Column(name="position", type="integer")
*/
private $position;
/**
* @Gedmo\SortableGroup
* @ORM\Column(name="category", type="string", length=128)
*/
private $category;
/**
* @var string
*
* @ORM\Column(name="bannerImage", type="string", length=255, nullable=true)
*/
private $bannerImage;
/**
* @var string
*
* @ORM\Column(name="bannerContent", type="text", nullable=true)
*/
private $bannerContent;
/**
* @ORM\Column(name="publish", type="boolean", nullable=true)
*/
private $publish = false;
/**
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $created;
/**
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
*/
private $updated;
/**
* @var User $createdBy
*
* @Gedmo\Blameable(on="create")
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
*/
private $createdBy;
/**
* @var User $updatedBy
*
* @Gedmo\Blameable(on="update")
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
*/
private $updatedBy;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
* @return Pages
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set title
*
* @param string $title
* @return Pages
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set keywords
*
* @param string $keywords
* @return Pages
*/
public function setKeywords($keywords)
{
$this->keywords = $keywords;
return $this;
}
/**
* Get keywords
*
* @return string
*/
public function getKeywords()
{
return $this->keywords;
}
/**
* Set description
*
* @param string $description
* @return Pages
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set metaTitle
*
* @param string $metaTitle
* @return Pages
*/
public function setMetaTitle($metaTitle)
{
$this->metaTitle = $metaTitle;
return $this;
}
/**
* Get metaTitle
*
* @return string
*/
public function getMetaTitle()
{
return $this->metaTitle;
}
/**
* Set metaKeywords
*
* @param string $metaKeywords
* @return Pages
*/
public function setMetaKeywords($metaKeywords)
{
$this->metaKeywords = $metaKeywords;
return $this;
}
/**
* Get metaKeywords
*
* @return string
*/
public function getMetaKeywords()
{
return $this->metaKeywords;
}
/**
* Set metaDescription
*
* @param string $metaDescription
* @return Pages
*/
public function setMetaDescription($metaDescription)
{
$this->metaDescription = $metaDescription;
return $this;
}
/**
* Get metaDescription
*
* @return string
*/
public function getMetaDescription()
{
return $this->metaDescription;
}
/**
* Set content
*
* @param string $content
* @return Pages
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Get content
*
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Set type
*
* @param string $type
* @return Pages
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getType()
{
return $this->type;
}
public function setSlug($slug)
{
$this->slug = $slug;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Set created
*
* @param \DateTime $created
* @return Pages
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set updated
*
* @param \DateTime $updated
* @return Pages
*/
public function setUpdated($updated)
{
$this->updated = $updated;
return $this;
}
/**
* Get updated
*
* @return \DateTime
*/
public function getUpdated()
{
return $this->updated;
}
public function setPosition($position)
{
$this->position = $position;
}
public function getPosition()
{
return $this->position;
}
public function setCategory($category)
{
$this->category = $category;
}
public function getCategory()
{
return $this->category;
}
/**
* Set publish
*
* @param boolean $publish
* @return Pages
*/
public function setPublish($publish)
{
$this->publish = $publish;
return $this;
}
/**
* Get publish
*
* @return boolean
*/
public function getPublish()
{
return $this->publish;
}
/**
* Set feature1
*
* @param \App\Entity\Features $feature1
*
* @return Pages
*/
public function setFeature1(\App\Entity\Features $feature1 = null)
{
$this->feature1 = $feature1;
return $this;
}
/**
* Get feature1
*
* @return \App\Entity\Features
*/
public function getFeature1()
{
return $this->feature1;
}
/**
* Set feature2
*
* @param \App\Entity\Features $feature2
*
* @return Pages
*/
public function setFeature2(\App\Entity\Features $feature2 = null)
{
$this->feature2 = $feature2;
return $this;
}
/**
* Get feature2
*
* @return \App\Entity\Features
*/
public function getFeature2()
{
return $this->feature2;
}
/**
* Set feature3
*
* @param \App\Entity\Features $feature3
*
* @return Pages
*/
public function setFeature3(\App\Entity\Features $feature3 = null)
{
$this->feature3 = $feature3;
return $this;
}
/**
* Get feature3
*
* @return \App\Entity\Features
*/
public function getFeature3()
{
return $this->feature3;
}
/**
* Get createdBy
*
* @return \App\Entity\User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* Get updatedBy
*
* @return \App\Entity\User
*/
public function getUpdatedBy()
{
return $this->updatedBy;
}
/**
* Set createdBy
*
* @param \App\Entity\User $createdBy
*
* @return Pages
*/
public function setCreatedBy(\App\Entity\User $createdBy = null)
{
$this->createdBy = $createdBy;
return $this;
}
/**
* Set updatedBy
*
* @param \App\Entity\User $updatedBy
*
* @return Pages
*/
public function setUpdatedBy(\App\Entity\User $updatedBy = null)
{
$this->updatedBy = $updatedBy;
return $this;
}
/**
* Set bannerImage
*
* @param string $bannerImage
* @return Pages
*/
public function setBannerImage($bannerImage)
{
$this->bannerImage = $bannerImage;
return $this;
}
/**
* Get bannerImage
*
* @return string
*/
public function getBannerImage()
{
return $this->bannerImage;
}
/**
* Set bannerContent
*
* @param string $bannerContent
* @return Pages
*/
public function setBannerContent($bannerContent)
{
$this->bannerContent = $bannerContent;
return $this;
}
/**
* Get bannerContent
*
* @return string
*/
public function getBannerContent()
{
return $this->bannerContent;
}
}