src/Entity/Event/EventType.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Event;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6.  * EventType
  7.  *
  8.  * @ORM\Table(name="tam_event_type")
  9.  * @ORM\Entity(repositoryClass="App\Repository\Event\EventTypeRepository")
  10.  */
  11. class EventType
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="label", type="string", length=255, nullable=true)
  26.      */
  27.     private $label;
  28.     
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="code_translate", type="string", length=255, nullable=false)
  33.      */
  34.     private $codeTranslate;
  35.     
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="description", type="text", nullable=true)
  40.      */
  41.     private $description;
  42.     
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="description_code_translate", type="string", length=255, nullable=false)
  47.      */
  48.     private $descriptionCodeTranslate;
  49.     
  50.     /**
  51.      * @var boolean
  52.      *
  53.      * @ORM\Column(name="available_for_club", type="boolean", options={"default": FALSE})
  54.      */
  55.     private $availableForClub;
  56.     
  57.     /**
  58.      * @var boolean
  59.      *
  60.      * @ORM\Column(name="available_for_pro", type="boolean", options={"default": FALSE})
  61.      */
  62.     private $availableForPro;
  63.     
  64.     /**
  65.      * @var integer
  66.      *
  67.      * @ORM\Column(name="indice", type="integer", options={"default": 0})
  68.      */
  69.     private $indice;
  70.     
  71.     /**
  72.      * @var boolean
  73.      *
  74.      * @ORM\Column(name="deleted", type="boolean", options={"default": FALSE})
  75.      */
  76.     private $deleted;
  77.     
  78.     /**
  79.      * @var \DateTime
  80.      *
  81.      * @ORM\Column(name="date_deleted", type="datetime", nullable=true)
  82.      */
  83.     private $dateDeleted;
  84.     
  85.     /**
  86.      * @var integer
  87.      *
  88.      * @ORM\Column(name="old_id", type="integer", options={"default": 0})
  89.      */
  90.     private $oldId;
  91.     
  92.     /**
  93.      * @var ArrayCollection
  94.      *
  95.      * @ORM\OneToMany(targetEntity="\App\Entity\Event\EventClub", mappedBy="eventType", cascade={"persist"}, orphanRemoval=true)
  96.      */
  97.     private $clubEvents;
  98.     
  99.     public function __construct()
  100.     {
  101.         $this->clubEvents = new ArrayCollection();
  102.         $this->availableForClub false;
  103.         $this->availableForPro false;
  104.         $this->deleted false;
  105.     }
  106.     /**
  107.      * Get id
  108.      *
  109.      * @return int
  110.      */
  111.     public function getId()
  112.     {
  113.         return $this->id;
  114.     }
  115.     
  116.     /**
  117.      * Set label
  118.      *
  119.      * @param string $label
  120.      *
  121.      * @return EventType
  122.      */
  123.     public function setLabel($label)
  124.     {
  125.         $this->label $label;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get label
  130.      *
  131.      * @return string
  132.      */
  133.     public function getLabel()
  134.     {
  135.         return $this->label;
  136.     }
  137.     
  138.     /**
  139.      * Set codeTranslate
  140.      *
  141.      * @param string $codeTranslate
  142.      *
  143.      * @return EventType
  144.      */
  145.     public function setCodeTranslate($codeTranslate)
  146.     {
  147.         $this->codeTranslate $codeTranslate;
  148.         return $this;
  149.     }
  150.     /**
  151.      * Get codeTranslate
  152.      *
  153.      * @return string
  154.      */
  155.     public function getCodeTranslate()
  156.     {
  157.         return $this->codeTranslate;
  158.     }
  159.     
  160.     /**
  161.      * Set description
  162.      *
  163.      * @param string $description
  164.      *
  165.      * @return EventType
  166.      */
  167.     public function setDescription($description)
  168.     {
  169.         $this->description $description;
  170.         return $this;
  171.     }
  172.     /**
  173.      * Get description
  174.      *
  175.      * @return string
  176.      */
  177.     public function getDescription()
  178.     {
  179.         return $this->description;
  180.     }
  181.     
  182.     /**
  183.      * Set descriptionCodeTranslate
  184.      *
  185.      * @param string $descriptionCodeTranslate
  186.      *
  187.      * @return EventType
  188.      */
  189.     public function setDescriptionCodeTranslate($descriptionCodeTranslate)
  190.     {
  191.         $this->descriptionCodeTranslate $descriptionCodeTranslate;
  192.         return $this;
  193.     }
  194.     /**
  195.      * Get descriptionCodeTranslate
  196.      *
  197.      * @return string
  198.      */
  199.     public function getDescriptionCodeTranslate()
  200.     {
  201.         return $this->descriptionCodeTranslate;
  202.     }
  203.     
  204.     /**
  205.      * Set availableForClub
  206.      *
  207.      * @param boolean $availableForClub
  208.      *
  209.      * @return EventType
  210.      */
  211.     public function setAvailableForClub($availableForClub)
  212.     {
  213.         $this->availableForClub $availableForClub;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get availableForClub
  218.      *
  219.      * @return boolean
  220.      */
  221.     public function getAvailableForClub()
  222.     {
  223.         return $this->availableForClub;
  224.     }
  225.     
  226.     /**
  227.      * Set availableForPro
  228.      *
  229.      * @param boolean $availableForPro
  230.      *
  231.      * @return EventType
  232.      */
  233.     public function setAvailableForPro($availableForPro)
  234.     {
  235.         $this->availableForPro $availableForPro;
  236.         return $this;
  237.     }
  238.     /**
  239.      * Get availableForPro
  240.      *
  241.      * @return boolean
  242.      */
  243.     public function getAvailableForPro()
  244.     {
  245.         return $this->availableForPro;
  246.     }
  247.     
  248.     /**
  249.      * Set indice
  250.      *
  251.      * @param integer $indice
  252.      *
  253.      * @return EventType
  254.      */
  255.     public function setIndice($indice)
  256.     {
  257.         $this->indice $indice;
  258.         return $this;
  259.     }
  260.     /**
  261.      * Get indice
  262.      *
  263.      * @return integer
  264.      */
  265.     public function getIndice()
  266.     {
  267.         return $this->indice;
  268.     }
  269.     
  270.     /**
  271.      * Set deleted
  272.      *
  273.      * @param boolean $deleted
  274.      *
  275.      * @return EventType
  276.      */
  277.     public function setDeleted($deleted)
  278.     {
  279.         $this->deleted $deleted;
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get deleted
  284.      *
  285.      * @return boolean
  286.      */
  287.     public function getDeleted()
  288.     {
  289.         return $this->deleted;
  290.     }
  291.     
  292.     
  293.     /**
  294.      * Set dateDeleted
  295.      *
  296.      * @param \DateTime $dateDeleted
  297.      *
  298.      * @return EventType
  299.      */
  300.     public function setDateDeleted($datedeleted)
  301.     {
  302.         $this->dateDeleted $datedeleted;
  303.         return $this;
  304.     }
  305.     /**
  306.      * Get dateDeleted
  307.      *
  308.      * @return \DateTime
  309.      */
  310.     public function getDateDeleted()
  311.     {
  312.         return $this->dateDeleted;
  313.     }
  314.     
  315.     /**
  316.      * Set oldId
  317.      *
  318.      * @param integer $oldId
  319.      *
  320.      * @return EventType
  321.      */
  322.     public function setOldId($oldId)
  323.     {
  324.         $this->oldId $oldId;
  325.         return $this;
  326.     }
  327.     /**
  328.      * Get oldId
  329.      *
  330.      * @return integer
  331.      */
  332.     public function getOldId()
  333.     {
  334.         return $this->oldId;
  335.     }
  336.     
  337.     /**
  338.      * Add clubEvent
  339.      *
  340.      * @param \App\Entity\Event\EventClub $clubEvent
  341.      *
  342.      * @return EventType
  343.      */
  344.     public function addClubEvent(\App\Entity\Event\EventClub $clubEvent)
  345.     {
  346.         $this->clubEvents[] = $clubEvent;
  347.         return $this;
  348.     }
  349.     /**
  350.      * Remove clubEvent
  351.      *
  352.      * @param \App\Entity\Event\EventClub $clubEvent
  353.      */
  354.     public function removeClubEvent(\App\Entity\Event\EventClub $clubEvent)
  355.     {
  356.         $this->clubEvents->removeElement($clubEvent);
  357.     }
  358.     /**
  359.      * Get clubEvents
  360.      *
  361.      * @return \Doctrine\Common\Collections\Collection
  362.      */
  363.     public function getClubEvents()
  364.     {
  365.         return $this->clubEvents;
  366.     }
  367.     
  368.     
  369.     
  370.     
  371. }