src/Entity/Features.php line 15

Open in your IDE?
  1. <?php
  2. // src//App/Entity/Features.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. /**
  8.  * Features
  9.  *
  10.  * @ORM\Table()
  11.  * @ORM\Entity(repositoryClass="Gedmo\Sortable\Entity\Repository\SortableRepository")
  12.  */
  13. class Features
  14. {
  15.     /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="name", type="string", length=255)
  27.      */
  28.     private $name;
  29.     /**
  30.      * @var string
  31.      * @Gedmo\Slug(fields={"name"}, updatable=false)
  32.      * @ORM\Column(name="slug", type="string", length=255, unique=true)
  33.      */
  34.     private $slug;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  39.      */
  40.     private $title;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="content", type="text", nullable=true)
  45.      */
  46.     private $content;
  47.     /**
  48.      * @Gedmo\SortablePosition
  49.      * @ORM\Column(name="position", type="integer")
  50.      */
  51.     private $position;
  52.     /**
  53.      * @ORM\Column(name="category", type="string", length=128, nullable=true)
  54.      */
  55.     private $category;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="icon", type="string", length=255, nullable=true)
  60.      */
  61.     private $icon;
  62.     /**
  63.      * @ORM\Column(name="publish", type="boolean", nullable=true)
  64.      */
  65.     private $publish false;
  66.     /**
  67.      * @Gedmo\Timestampable(on="create")
  68.      * @ORM\Column(type="datetime")
  69.      */
  70.     private $created;
  71.     /**
  72.      * @Gedmo\Timestampable(on="update")
  73.      * @ORM\Column(type="datetime")
  74.      */
  75.     private $updated;
  76.     /**
  77.      * @var User $createdBy
  78.      *
  79.      * @Gedmo\Blameable(on="create")
  80.      * @ORM\ManyToOne(targetEntity="User")
  81.      * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  82.      */
  83.     private $createdBy;
  84.     /**
  85.      * @var User $updatedBy
  86.      *
  87.      * @Gedmo\Blameable(on="update")
  88.      * @ORM\ManyToOne(targetEntity="User")
  89.      * @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
  90.      */
  91.     private $updatedBy;
  92.     /**
  93.      * Get id
  94.      *
  95.      * @return integer
  96.      */
  97.     public function getId()
  98.     {
  99.         return $this->id;
  100.     }
  101.     /**
  102.      * Set name
  103.      *
  104.      * @param string $name
  105.      * @return Features
  106.      */
  107.     public function setName($name)
  108.     {
  109.         $this->name $name;
  110.         return $this;
  111.     }
  112.     /**
  113.      * Get name
  114.      *
  115.      * @return string
  116.      */
  117.     public function getName()
  118.     {
  119.         return $this->name;
  120.     }
  121.     /**
  122.      * Set title
  123.      *
  124.      * @param string $title
  125.      * @return Features
  126.      */
  127.     public function setTitle($title)
  128.     {
  129.         $this->title $title;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get title
  134.      *
  135.      * @return string
  136.      */
  137.     public function getTitle()
  138.     {
  139.         return $this->title;
  140.     }
  141.     /**
  142.      * Set content
  143.      *
  144.      * @param string $content
  145.      * @return Features
  146.      */
  147.     public function setContent($content)
  148.     {
  149.         $this->content $content;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Get content
  154.      *
  155.      * @return string
  156.      */
  157.     public function getContent()
  158.     {
  159.         return $this->content;
  160.     }
  161.     /**
  162.      * @return mixed
  163.      */
  164.     public function getPosition()
  165.     {
  166.         return $this->position;
  167.     }
  168.     /**
  169.      * @param mixed $position
  170.      * @return Features
  171.      */
  172.     public function setPosition($position)
  173.     {
  174.         $this->position $position;
  175.         return $this;
  176.     }
  177.     /**
  178.      * @return mixed
  179.      */
  180.     public function getCategory()
  181.     {
  182.         return $this->category;
  183.     }
  184.     /**
  185.      * @param mixed $category
  186.      * @return Features
  187.      */
  188.     public function setCategory($category)
  189.     {
  190.         $this->category $category;
  191.         return $this;
  192.     }
  193.     /**
  194.      * @return string
  195.      */
  196.     public function getIcon()
  197.     {
  198.         return $this->icon;
  199.     }
  200.     /**
  201.      * @param string $icon
  202.      * @return Features
  203.      */
  204.     public function setIcon($icon)
  205.     {
  206.         $this->icon $icon;
  207.         return $this;
  208.     }
  209.     /**
  210.      * @return bool
  211.      */
  212.     public function isPublish()
  213.     {
  214.         return $this->publish;
  215.     }
  216.     /**
  217.      * @param bool $publish
  218.      * @return Features
  219.      */
  220.     public function setPublish($publish)
  221.     {
  222.         $this->publish $publish;
  223.         return $this;
  224.     }
  225.     /**
  226.      * Set created
  227.      *
  228.      * @param \DateTime $created
  229.      * @return Features
  230.      */
  231.     public function setCreated($created)
  232.     {
  233.         $this->created $created;
  234.         return $this;
  235.     }
  236.     /**
  237.      * Get created
  238.      *
  239.      * @return \DateTime
  240.      */
  241.     public function getCreated()
  242.     {
  243.         return $this->created;
  244.     }
  245.     /**
  246.      * Set updated
  247.      *
  248.      * @param \DateTime $updated
  249.      * @return Features
  250.      */
  251.     public function setUpdated($updated)
  252.     {
  253.         $this->updated $updated;
  254.         return $this;
  255.     }
  256.     /**
  257.      * Get updated
  258.      *
  259.      * @return \DateTime
  260.      */
  261.     public function getUpdated()
  262.     {
  263.         return $this->updated;
  264.     }
  265.     /**
  266.      * Get createdBy
  267.      *
  268.      * @return \App\Entity\User
  269.      */
  270.     public function getCreatedBy()
  271.     {
  272.         return $this->createdBy;
  273.     }
  274.     /**
  275.      * Get updatedBy
  276.      *
  277.      * @return \App\Entity\User
  278.      */
  279.     public function getUpdatedBy()
  280.     {
  281.         return $this->updatedBy;
  282.     }
  283.     /**
  284.      * Set createdBy
  285.      *
  286.      * @param \App\Entity\User $createdBy
  287.      *
  288.      * @return Features
  289.      */
  290.     public function setCreatedBy(\App\Entity\User $createdBy null)
  291.     {
  292.         $this->createdBy $createdBy;
  293.         return $this;
  294.     }
  295.     /**
  296.      * Set updatedBy
  297.      *
  298.      * @param \App\Entity\User $updatedBy
  299.      *
  300.      * @return Features
  301.      */
  302.     public function setUpdatedBy(\App\Entity\User $updatedBy null)
  303.     {
  304.         $this->updatedBy $updatedBy;
  305.         return $this;
  306.     }
  307.     public function setSlug($slug)
  308.     {
  309.         $this->slug $slug;
  310.     }
  311.     /**
  312.      * Get slug
  313.      *
  314.      * @return string
  315.      */
  316.     public function getSlug()
  317.     {
  318.         return $this->slug;
  319.     }
  320. }