<?php
namespace App\Entity\Event;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* EventType
*
* @ORM\Table(name="tam_event_type")
* @ORM\Entity(repositoryClass="App\Repository\Event\EventTypeRepository")
*/
class EventType
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="label", type="string", length=255, nullable=true)
*/
private $label;
/**
* @var string
*
* @ORM\Column(name="code_translate", type="string", length=255, nullable=false)
*/
private $codeTranslate;
/**
* @var string
*
* @ORM\Column(name="description", type="text", nullable=true)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="description_code_translate", type="string", length=255, nullable=false)
*/
private $descriptionCodeTranslate;
/**
* @var boolean
*
* @ORM\Column(name="available_for_club", type="boolean", options={"default": FALSE})
*/
private $availableForClub;
/**
* @var boolean
*
* @ORM\Column(name="available_for_pro", type="boolean", options={"default": FALSE})
*/
private $availableForPro;
/**
* @var integer
*
* @ORM\Column(name="indice", type="integer", options={"default": 0})
*/
private $indice;
/**
* @var boolean
*
* @ORM\Column(name="deleted", type="boolean", options={"default": FALSE})
*/
private $deleted;
/**
* @var \DateTime
*
* @ORM\Column(name="date_deleted", type="datetime", nullable=true)
*/
private $dateDeleted;
/**
* @var integer
*
* @ORM\Column(name="old_id", type="integer", options={"default": 0})
*/
private $oldId;
/**
* @var ArrayCollection
*
* @ORM\OneToMany(targetEntity="\App\Entity\Event\EventClub", mappedBy="eventType", cascade={"persist"}, orphanRemoval=true)
*/
private $clubEvents;
public function __construct()
{
$this->clubEvents = new ArrayCollection();
$this->availableForClub = false;
$this->availableForPro = false;
$this->deleted = false;
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set label
*
* @param string $label
*
* @return EventType
*/
public function setLabel($label)
{
$this->label = $label;
return $this;
}
/**
* Get label
*
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* Set codeTranslate
*
* @param string $codeTranslate
*
* @return EventType
*/
public function setCodeTranslate($codeTranslate)
{
$this->codeTranslate = $codeTranslate;
return $this;
}
/**
* Get codeTranslate
*
* @return string
*/
public function getCodeTranslate()
{
return $this->codeTranslate;
}
/**
* Set description
*
* @param string $description
*
* @return EventType
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set descriptionCodeTranslate
*
* @param string $descriptionCodeTranslate
*
* @return EventType
*/
public function setDescriptionCodeTranslate($descriptionCodeTranslate)
{
$this->descriptionCodeTranslate = $descriptionCodeTranslate;
return $this;
}
/**
* Get descriptionCodeTranslate
*
* @return string
*/
public function getDescriptionCodeTranslate()
{
return $this->descriptionCodeTranslate;
}
/**
* Set availableForClub
*
* @param boolean $availableForClub
*
* @return EventType
*/
public function setAvailableForClub($availableForClub)
{
$this->availableForClub = $availableForClub;
return $this;
}
/**
* Get availableForClub
*
* @return boolean
*/
public function getAvailableForClub()
{
return $this->availableForClub;
}
/**
* Set availableForPro
*
* @param boolean $availableForPro
*
* @return EventType
*/
public function setAvailableForPro($availableForPro)
{
$this->availableForPro = $availableForPro;
return $this;
}
/**
* Get availableForPro
*
* @return boolean
*/
public function getAvailableForPro()
{
return $this->availableForPro;
}
/**
* Set indice
*
* @param integer $indice
*
* @return EventType
*/
public function setIndice($indice)
{
$this->indice = $indice;
return $this;
}
/**
* Get indice
*
* @return integer
*/
public function getIndice()
{
return $this->indice;
}
/**
* Set deleted
*
* @param boolean $deleted
*
* @return EventType
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
return $this;
}
/**
* Get deleted
*
* @return boolean
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Set dateDeleted
*
* @param \DateTime $dateDeleted
*
* @return EventType
*/
public function setDateDeleted($datedeleted)
{
$this->dateDeleted = $datedeleted;
return $this;
}
/**
* Get dateDeleted
*
* @return \DateTime
*/
public function getDateDeleted()
{
return $this->dateDeleted;
}
/**
* Set oldId
*
* @param integer $oldId
*
* @return EventType
*/
public function setOldId($oldId)
{
$this->oldId = $oldId;
return $this;
}
/**
* Get oldId
*
* @return integer
*/
public function getOldId()
{
return $this->oldId;
}
/**
* Add clubEvent
*
* @param \App\Entity\Event\EventClub $clubEvent
*
* @return EventType
*/
public function addClubEvent(\App\Entity\Event\EventClub $clubEvent)
{
$this->clubEvents[] = $clubEvent;
return $this;
}
/**
* Remove clubEvent
*
* @param \App\Entity\Event\EventClub $clubEvent
*/
public function removeClubEvent(\App\Entity\Event\EventClub $clubEvent)
{
$this->clubEvents->removeElement($clubEvent);
}
/**
* Get clubEvents
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getClubEvents()
{
return $this->clubEvents;
}
}