vendor/theatre/core/src/Entity/AnnCategories.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * AnnCategories
  6.  *
  7.  * @ORM\Table(name="ann_categories", uniqueConstraints={@ORM\UniqueConstraint(name="url_clean", columns={"url_clean"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\AnnCategoriesRepository")
  9.  */
  10. class AnnCategories
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idcategorie", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idcategorie;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=150, nullable=true)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="description", type="string", length=250, nullable=true)
  30.      */
  31.     private $description;
  32.     /**
  33.      * @var int
  34.      *
  35.      * @ORM\Column(name="online", type="integer", nullable=false)
  36.      */
  37.     private $online '0';
  38.     /**
  39.      * @var int
  40.      *
  41.      * @ORM\Column(name="class", type="smallint", nullable=false)
  42.      */
  43.     private $class '0';
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="url_clean", type="string", length=250, nullable=true)
  48.      */
  49.     private $urlClean;
  50.     /**
  51.      * Get idcategorie.
  52.      *
  53.      * @return int
  54.      */
  55.     public function getIdcategorie()
  56.     {
  57.         return $this->idcategorie;
  58.     }
  59.     /**
  60.      * Set name.
  61.      *
  62.      * @param string|null $name
  63.      *
  64.      * @return AnnCategories
  65.      */
  66.     public function setName($name null)
  67.     {
  68.         $this->name $name;
  69.         return $this;
  70.     }
  71.     /**
  72.      * Get name.
  73.      *
  74.      * @return string|null
  75.      */
  76.     public function getName()
  77.     {
  78.         return $this->name;
  79.     }
  80.     /**
  81.      * Set description.
  82.      *
  83.      * @param string|null $description
  84.      *
  85.      * @return AnnCategories
  86.      */
  87.     public function setDescription($description null)
  88.     {
  89.         $this->description $description;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get description.
  94.      *
  95.      * @return string|null
  96.      */
  97.     public function getDescription()
  98.     {
  99.         return $this->description;
  100.     }
  101.     /**
  102.      * Set online.
  103.      *
  104.      * @param int $online
  105.      *
  106.      * @return AnnCategories
  107.      */
  108.     public function setOnline($online)
  109.     {
  110.         $this->online $online;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get online.
  115.      *
  116.      * @return int
  117.      */
  118.     public function getOnline()
  119.     {
  120.         return $this->online;
  121.     }
  122.     /**
  123.      * Set class.
  124.      *
  125.      * @param int $class
  126.      *
  127.      * @return AnnCategories
  128.      */
  129.     public function setClass($class)
  130.     {
  131.         $this->class $class;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get class.
  136.      *
  137.      * @return int
  138.      */
  139.     public function getClass()
  140.     {
  141.         return $this->class;
  142.     }
  143.     /**
  144.      * Set urlClean.
  145.      *
  146.      * @param string|null $urlClean
  147.      *
  148.      * @return AnnCategories
  149.      */
  150.     public function setUrlClean($urlClean null)
  151.     {
  152.         $this->urlClean $urlClean;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get urlClean.
  157.      *
  158.      * @return string|null
  159.      */
  160.     public function getUrlClean()
  161.     {
  162.         return $this->urlClean;
  163.     }
  164. }