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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Aides
  6.  *
  7.  * @ORM\Table(name="aides", indexes={@ORM\Index(name="idaidecontact", columns={"idaidecontact"}), @ORM\Index(name="idcontact", columns={"idcontact"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\AidesRepository")
  9.  */
  10. class Aides
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idaide", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idaide;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="aide", type="string", length=250, nullable=true)
  24.      */
  25.     private $aide;
  26.     /**
  27.      * @var int|null
  28.      *
  29.      * @ORM\Column(name="type_aide", type="integer", nullable=true)
  30.      */
  31.     private $typeAide;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="description", type="text", length=65535, nullable=true)
  36.      */
  37.     private $description;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="mention_spectacles", type="text", length=65535, nullable=true)
  42.      */
  43.     private $mentionSpectacles;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="mention_texts", type="text", length=65535, nullable=true)
  48.      */
  49.     private $mentionTexts;
  50.     /**
  51.      * @var string|null
  52.      *
  53.      * @ORM\Column(name="mention_contacts", type="text", length=65535, nullable=true)
  54.      */
  55.     private $mentionContacts;
  56.     /**
  57.      * @var string|null
  58.      *
  59.      * @ORM\Column(name="mention_persons", type="text", length=65535, nullable=true)
  60.      */
  61.     private $mentionPersons;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="url_clean", type="string", length=250, nullable=false)
  66.      */
  67.     private $urlClean;
  68.     /**
  69.      * @var \DateTime|null
  70.      *
  71.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true)
  72.      */
  73.     private $dateupdate;
  74.     /**
  75.      * @var \DateTime|null
  76.      *
  77.      * @ORM\Column(name="dateinsert", type="datetime", nullable=true)
  78.      */
  79.     private $dateinsert;
  80.     /**
  81.      * @var bool
  82.      *
  83.      * @ORM\Column(name="publish", type="boolean", nullable=false, options={"default"="1"})
  84.      */
  85.     private $publish true;
  86.     /**
  87.      * @var \Contacts
  88.      *
  89.      * @ORM\ManyToOne(targetEntity="Contacts")
  90.      * @ORM\JoinColumns({
  91.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  92.      * })
  93.      */
  94.     private $idcontact;
  95.     /**
  96.      * @var \Aidecontacts
  97.      *
  98.      * @ORM\ManyToOne(targetEntity="Aidecontacts")
  99.      * @ORM\JoinColumns({
  100.      *   @ORM\JoinColumn(name="idaidecontact", referencedColumnName="idaidecontact")
  101.      * })
  102.      */
  103.     private $idaidecontact;
  104.     /**
  105.      * Get idaide.
  106.      *
  107.      * @return int
  108.      */
  109.     public function getIdaide()
  110.     {
  111.         return $this->idaide;
  112.     }
  113.     /**
  114.      * Set aide.
  115.      *
  116.      * @param string|null $aide
  117.      *
  118.      * @return Aides
  119.      */
  120.     public function setAide($aide null)
  121.     {
  122.         $this->aide $aide;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get aide.
  127.      *
  128.      * @return string|null
  129.      */
  130.     public function getAide()
  131.     {
  132.         return $this->aide;
  133.     }
  134.     /**
  135.      * Set typeAide.
  136.      *
  137.      * @param bool|null $typeAide
  138.      *
  139.      * @return Aides
  140.      */
  141.     public function setTypeAide($typeAide null)
  142.     {
  143.         $this->typeAide $typeAide;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get typeAide.
  148.      *
  149.      * @return bool|null
  150.      */
  151.     public function getTypeAide()
  152.     {
  153.         return $this->typeAide;
  154.     }
  155.     /**
  156.      * Set description.
  157.      *
  158.      * @param string|null $description
  159.      *
  160.      * @return Aides
  161.      */
  162.     public function setDescription($description null)
  163.     {
  164.         $this->description $description;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get description.
  169.      *
  170.      * @return string|null
  171.      */
  172.     public function getDescription()
  173.     {
  174.         return $this->description;
  175.     }
  176.     /**
  177.      * Set mentionSpectacles.
  178.      *
  179.      * @param string|null $mentionSpectacles
  180.      *
  181.      * @return Aides
  182.      */
  183.     public function setMentionSpectacles($mentionSpectacles null)
  184.     {
  185.         $this->mentionSpectacles $mentionSpectacles;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Get mentionSpectacles.
  190.      *
  191.      * @return string|null
  192.      */
  193.     public function getMentionSpectacles()
  194.     {
  195.         return $this->mentionSpectacles;
  196.     }
  197.     /**
  198.      * Set mentionTexts.
  199.      *
  200.      * @param string|null $mentionTexts
  201.      *
  202.      * @return Aides
  203.      */
  204.     public function setMentionTexts($mentionTexts null)
  205.     {
  206.         $this->mentionTexts $mentionTexts;
  207.         return $this;
  208.     }
  209.     /**
  210.      * Get mentionTexts.
  211.      *
  212.      * @return string|null
  213.      */
  214.     public function getMentionTexts()
  215.     {
  216.         return $this->mentionTexts;
  217.     }
  218.     /**
  219.      * Set mentionContacts.
  220.      *
  221.      * @param string|null $mentionContacts
  222.      *
  223.      * @return Aides
  224.      */
  225.     public function setMentionContacts($mentionContacts null)
  226.     {
  227.         $this->mentionContacts $mentionContacts;
  228.         return $this;
  229.     }
  230.     /**
  231.      * Get mentionContacts.
  232.      *
  233.      * @return string|null
  234.      */
  235.     public function getMentionContacts()
  236.     {
  237.         return $this->mentionContacts;
  238.     }
  239.     /**
  240.      * Set mentionPersons.
  241.      *
  242.      * @param string|null $mentionPersons
  243.      *
  244.      * @return Aides
  245.      */
  246.     public function setMentionPersons($mentionPersons null)
  247.     {
  248.         $this->mentionPersons $mentionPersons;
  249.         return $this;
  250.     }
  251.     /**
  252.      * Get mentionPersons.
  253.      *
  254.      * @return string|null
  255.      */
  256.     public function getMentionPersons()
  257.     {
  258.         return $this->mentionPersons;
  259.     }
  260.     /**
  261.      * Set urlClean.
  262.      *
  263.      * @param string $urlClean
  264.      *
  265.      * @return Aides
  266.      */
  267.     public function setUrlClean($urlClean)
  268.     {
  269.         $this->urlClean $urlClean;
  270.         return $this;
  271.     }
  272.     /**
  273.      * Get urlClean.
  274.      *
  275.      * @return string
  276.      */
  277.     public function getUrlClean()
  278.     {
  279.         return $this->urlClean;
  280.     }
  281.     /**
  282.      * Set dateupdate.
  283.      *
  284.      * @param \DateTime|null $dateupdate
  285.      *
  286.      * @return Aides
  287.      */
  288.     public function setDateupdate($dateupdate null)
  289.     {
  290.         $this->dateupdate $dateupdate;
  291.         return $this;
  292.     }
  293.     /**
  294.      * Get dateupdate.
  295.      *
  296.      * @return \DateTime|null
  297.      */
  298.     public function getDateupdate()
  299.     {
  300.         return $this->dateupdate;
  301.     }
  302.     /**
  303.      * Set dateinsert.
  304.      *
  305.      * @param \DateTime|null $dateinsert
  306.      *
  307.      * @return Aides
  308.      */
  309.     public function setDateinsert($dateinsert null)
  310.     {
  311.         $this->dateinsert $dateinsert;
  312.         return $this;
  313.     }
  314.     /**
  315.      * Get dateinsert.
  316.      *
  317.      * @return \DateTime|null
  318.      */
  319.     public function getDateinsert()
  320.     {
  321.         return $this->dateinsert;
  322.     }
  323.     /**
  324.      * Set publish.
  325.      *
  326.      * @param bool $publish
  327.      *
  328.      * @return Aides
  329.      */
  330.     public function setPublish($publish)
  331.     {
  332.         $this->publish $publish;
  333.         return $this;
  334.     }
  335.     /**
  336.      * Get publish.
  337.      *
  338.      * @return bool
  339.      */
  340.     public function getPublish()
  341.     {
  342.         return $this->publish;
  343.     }
  344.     /**
  345.      * Set idcontact.
  346.      *
  347.      * @param \Contacts|null $idcontact
  348.      *
  349.      * @return Aides
  350.      */
  351.     public function setIdcontact(Contacts $idcontact null)
  352.     {
  353.         $this->idcontact $idcontact;
  354.         return $this;
  355.     }
  356.     /**
  357.      * Get idcontact.
  358.      *
  359.      * @return \Contacts|null
  360.      */
  361.     public function getIdcontact()
  362.     {
  363.         return $this->idcontact;
  364.     }
  365.     /**
  366.      * Set idaidecontact.
  367.      *
  368.      * @param \Aidecontacts|null $idaidecontact
  369.      *
  370.      * @return Aides
  371.      */
  372.     public function setIdaidecontact(Aidecontacts $idaidecontact null)
  373.     {
  374.         $this->idaidecontact $idaidecontact;
  375.         return $this;
  376.     }
  377.     /**
  378.      * Get idaidecontact.
  379.      *
  380.      * @return \Aidecontacts|null
  381.      */
  382.     public function getIdaidecontact()
  383.     {
  384.         return $this->idaidecontact;
  385.     }
  386.     /**
  387.      * toString
  388.      * @return string
  389.      */
  390.     public function __toString()
  391.     {
  392.         return $this->getAide();
  393.     }
  394. }