<?php
namespace TheatreCore\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Modules
*
* @ORM\Table(name="modules")
* @ORM\Entity(repositoryClass="TheatreCore\Repository\ModulesRepository")
*/
class Modules
{
/**
* @var string
*
* @ORM\Column(name="module", type="string", length=10, nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $module;
/**
* @var string
*
* @ORM\Column(name="description", type="string", length=150, nullable=false)
*/
private $description;
/**
* @var string|null
*
* @ORM\Column(name="url", type="string", length=50, nullable=true)
*/
private $url;
/**
* @var bool|null
*
* @ORM\Column(name="publish", type="boolean", nullable=true)
*/
private $publish;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Classifications", mappedBy="module")
*/
private $idclassification;
/**
* Constructor
*/
public function __construct()
{
$this->idclassification = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get module.
*
* @return string
*/
public function getModule()
{
return $this->module;
}
/**
* Set description.
*
* @param string $description
*
* @return Modules
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set url.
*
* @param string|null $url
*
* @return Modules
*/
public function setUrl($url = null)
{
$this->url = $url;
return $this;
}
/**
* Get url.
*
* @return string|null
*/
public function getUrl()
{
return $this->url;
}
/**
* Set publish.
*
* @param bool|null $publish
*
* @return Modules
*/
public function setPublish($publish = null)
{
$this->publish = $publish;
return $this;
}
/**
* Get publish.
*
* @return bool|null
*/
public function getPublish()
{
return $this->publish;
}
/**
* Add idclassification.
*
* @param \Classifications $idclassification
*
* @return Modules
*/
public function addIdclassification(Classifications $idclassification)
{
$this->idclassification[] = $idclassification;
return $this;
}
/**
* Remove idclassification.
*
* @param \Classifications $idclassification
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeIdclassification(Classifications $idclassification)
{
return $this->idclassification->removeElement($idclassification);
}
/**
* Get idclassification.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIdclassification()
{
return $this->idclassification;
}
}