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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Modules
  6.  *
  7.  * @ORM\Table(name="modules")
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\ModulesRepository")
  9.  */
  10. class Modules
  11. {
  12.     /**
  13.      * @var string
  14.      *
  15.      * @ORM\Column(name="module", type="string", length=10, nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $module;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="description", type="string", length=150, nullable=false)
  24.      */
  25.     private $description;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="url", type="string", length=50, nullable=true)
  30.      */
  31.     private $url;
  32.     /**
  33.      * @var bool|null
  34.      *
  35.      * @ORM\Column(name="publish", type="boolean", nullable=true)
  36.      */
  37.     private $publish;
  38.     /**
  39.      * @var \Doctrine\Common\Collections\Collection
  40.      *
  41.      * @ORM\ManyToMany(targetEntity="Classifications", mappedBy="module")
  42.      */
  43.     private $idclassification;
  44.     /**
  45.      * Constructor
  46.      */
  47.     public function __construct()
  48.     {
  49.         $this->idclassification = new \Doctrine\Common\Collections\ArrayCollection();
  50.     }
  51.     /**
  52.      * Get module.
  53.      *
  54.      * @return string
  55.      */
  56.     public function getModule()
  57.     {
  58.         return $this->module;
  59.     }
  60.     /**
  61.      * Set description.
  62.      *
  63.      * @param string $description
  64.      *
  65.      * @return Modules
  66.      */
  67.     public function setDescription($description)
  68.     {
  69.         $this->description $description;
  70.         return $this;
  71.     }
  72.     /**
  73.      * Get description.
  74.      *
  75.      * @return string
  76.      */
  77.     public function getDescription()
  78.     {
  79.         return $this->description;
  80.     }
  81.     /**
  82.      * Set url.
  83.      *
  84.      * @param string|null $url
  85.      *
  86.      * @return Modules
  87.      */
  88.     public function setUrl($url null)
  89.     {
  90.         $this->url $url;
  91.         return $this;
  92.     }
  93.     /**
  94.      * Get url.
  95.      *
  96.      * @return string|null
  97.      */
  98.     public function getUrl()
  99.     {
  100.         return $this->url;
  101.     }
  102.     /**
  103.      * Set publish.
  104.      *
  105.      * @param bool|null $publish
  106.      *
  107.      * @return Modules
  108.      */
  109.     public function setPublish($publish null)
  110.     {
  111.         $this->publish $publish;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get publish.
  116.      *
  117.      * @return bool|null
  118.      */
  119.     public function getPublish()
  120.     {
  121.         return $this->publish;
  122.     }
  123.     /**
  124.      * Add idclassification.
  125.      *
  126.      * @param \Classifications $idclassification
  127.      *
  128.      * @return Modules
  129.      */
  130.     public function addIdclassification(Classifications $idclassification)
  131.     {
  132.         $this->idclassification[] = $idclassification;
  133.         return $this;
  134.     }
  135.     /**
  136.      * Remove idclassification.
  137.      *
  138.      * @param \Classifications $idclassification
  139.      *
  140.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  141.      */
  142.     public function removeIdclassification(Classifications $idclassification)
  143.     {
  144.         return $this->idclassification->removeElement($idclassification);
  145.     }
  146.     /**
  147.      * Get idclassification.
  148.      *
  149.      * @return \Doctrine\Common\Collections\Collection
  150.      */
  151.     public function getIdclassification()
  152.     {
  153.         return $this->idclassification;
  154.     }
  155. }