src/Entity/Message.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6.  * Message
  7.  *
  8.  * @ORM\Table(name="messages")
  9.  * @ORM\Entity(repositoryClass="App\Repository\MessageRepository")
  10.  */
  11. class Message
  12. {
  13.     /**
  14.      * @ORM\ManyToMany(targetEntity="MailZone")
  15.      * @ORM\JoinTable(name="mailzones_messages",
  16.      *      joinColumns={@ORM\JoinColumn(name="message_id", referencedColumnName="id")},
  17.      *      inverseJoinColumns={@ORM\JoinColumn(name="mailzone_id", referencedColumnName="id")}
  18.      *      )
  19.      */
  20.     private $mailzones;
  21.     
  22.     public function __construct() {
  23.         $this->mailzones = new \Doctrine\Common\Collections\ArrayCollection();
  24.     }
  25.     /**
  26.      * @var int
  27.      *
  28.      * @ORM\Column(name="id", type="integer")
  29.      * @ORM\Id
  30.      * @ORM\GeneratedValue(strategy="AUTO")
  31.      */
  32.     private $id;
  33.     /**
  34.      * @var \DateTime
  35.      *
  36.      * @ORM\Column(name="date", type="datetime")
  37.      */
  38.     private $date;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="titre", type="string", length=255)
  43.      */
  44.     private $titre;
  45.     /**
  46.      * @var int
  47.      *
  48.      * @ORM\Column(name="nombre", type="integer")
  49.      */
  50.     private $nombre '0';
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="texte", type="text")
  55.      */
  56.     private $texte;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="destinataires", type="text")
  61.      */
  62.     private $destinataires "";
  63.     /**
  64.      * @var bool
  65.      *
  66.      * @ORM\Column(name="type", type="boolean")
  67.      */
  68.     private $type;
  69.     /**
  70.      * @var bool
  71.      *
  72.      * @ORM\Column(name="moulin", type="boolean")
  73.      */
  74.     private $moulin;
  75.     /**
  76.      * @var bool
  77.      *
  78.      * @ORM\Column(name="confiseur", type="boolean")
  79.      */
  80.     private $confiseur;
  81.     /**
  82.      * @var bool
  83.      *
  84.      * @ORM\Column(name="domaine", type="boolean")
  85.      */
  86.     private $domaine;
  87.     /**
  88.      * @var bool
  89.      *
  90.      * @ORM\Column(name="syndicat", type="boolean")
  91.      */
  92.     private $syndicat;
  93.     /**
  94.      * @var bool
  95.      *
  96.      * @ORM\Column(name="salaries", type="boolean")
  97.      */
  98.     private $salaries;
  99.     /**
  100.      * @var bool
  101.      *
  102.      * @ORM\Column(name="administrateur", type="boolean")
  103.      */
  104.     private $administrateur;
  105.     /**
  106.      * @var bool
  107.      *
  108.      * @ORM\Column(name="syndiclocal", type="boolean")
  109.      */
  110.     private $syndiclocal;
  111.     /**
  112.      * @var bool
  113.      *
  114.      * @ORM\Column(name="association", type="boolean")
  115.      */
  116.     private $association;
  117.     /**
  118.      * @var bool
  119.      *
  120.      * @ORM\Column(name="membre", type="boolean")
  121.      */
  122.     private $membre;
  123.     /**
  124.      * @var bool
  125.      *
  126.      * @ORM\Column(name="annuaire", type="boolean")
  127.      */
  128.     private $annuaire '0';
  129.     /**
  130.      * @var bool
  131.      *
  132.      * @ORM\Column(name="technicien", type="boolean")
  133.      */
  134.     private $technicien;
  135.     /**
  136.      * @var bool
  137.      *
  138.      * @ORM\Column(name="piegeur", type="boolean")
  139.      */
  140.     private $piegeur false;
  141.     
  142.     /**
  143.      * @var bool
  144.      *
  145.      * @ORM\Column(name="technolive", type="boolean")
  146.      */
  147.     private $technolive false;
  148.     /**
  149.      * @ORM\Column(type="boolean")
  150.      */
  151.     private $CVO;
  152.     /**
  153.      * @ORM\Column(type="boolean")
  154.      */
  155.     private $CVOC;
  156.     /**
  157.      * Get id
  158.      *
  159.      * @return int
  160.      */
  161.     public function getId()
  162.     {
  163.         return $this->id;
  164.     }
  165.     /**
  166.      * Set date
  167.      *
  168.      * @param \DateTime $date
  169.      *
  170.      * @return Message
  171.      */
  172.     public function setDate($date)
  173.     {
  174.         $this->date $date;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Get date
  179.      *
  180.      * @return \DateTime
  181.      */
  182.     public function getDate()
  183.     {
  184.         return $this->date;
  185.     }
  186.     /**
  187.      * Set titre
  188.      *
  189.      * @param string $titre
  190.      *
  191.      * @return Message
  192.      */
  193.     public function setTitre($titre)
  194.     {
  195.         $this->titre $titre;
  196.         return $this;
  197.     }
  198.     /**
  199.      * Get titre
  200.      *
  201.      * @return string
  202.      */
  203.     public function getTitre()
  204.     {
  205.         return $this->titre;
  206.     }
  207.     /**
  208.      * Set nombre
  209.      *
  210.      * @param integer $nombre
  211.      *
  212.      * @return Message
  213.      */
  214.     public function setNombre($nombre)
  215.     {
  216.         $this->nombre $nombre;
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get nombre
  221.      *
  222.      * @return int
  223.      */
  224.     public function getNombre()
  225.     {
  226.         return $this->nombre;
  227.     }
  228.     /**
  229.      * Set texte
  230.      *
  231.      * @param string $texte
  232.      *
  233.      * @return Message
  234.      */
  235.     public function setTexte($texte)
  236.     {
  237.         $this->texte $texte;
  238.         return $this;
  239.     }
  240.     /**
  241.      * Get texte
  242.      *
  243.      * @return string
  244.      */
  245.     public function getTexte()
  246.     {
  247.         return $this->texte;
  248.     }
  249.     /**
  250.      * Set destinataires
  251.      *
  252.      * @param string $destinataires
  253.      *
  254.      * @return Message
  255.      */
  256.     public function setDestinataires($destinataires)
  257.     {
  258.         $this->destinataires $destinataires;
  259.         return $this;
  260.     }
  261.     /**
  262.      * Get destinataires
  263.      *
  264.      * @return string
  265.      */
  266.     public function getDestinataires()
  267.     {
  268.         return $this->destinataires;
  269.     }
  270.     /**
  271.      * Set type
  272.      *
  273.      * @param boolean $type
  274.      *
  275.      * @return Message
  276.      */
  277.     public function setType($type)
  278.     {
  279.         $this->type $type;
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get type
  284.      *
  285.      * @return bool
  286.      */
  287.     public function getType()
  288.     {
  289.         return $this->type;
  290.     }
  291.     /**
  292.      * Set moulin
  293.      *
  294.      * @param boolean $moulin
  295.      *
  296.      * @return Message
  297.      */
  298.     public function setMoulin($moulin)
  299.     {
  300.         $this->moulin $moulin;
  301.         return $this;
  302.     }
  303.     /**
  304.      * Get moulin
  305.      *
  306.      * @return bool
  307.      */
  308.     public function getMoulin()
  309.     {
  310.         return $this->moulin;
  311.     }
  312.     /**
  313.      * Set confiseur
  314.      *
  315.      * @param boolean $confiseur
  316.      *
  317.      * @return Message
  318.      */
  319.     public function setConfiseur($confiseur)
  320.     {
  321.         $this->confiseur $confiseur;
  322.         return $this;
  323.     }
  324.     /**
  325.      * Get confiseur
  326.      *
  327.      * @return bool
  328.      */
  329.     public function getConfiseur()
  330.     {
  331.         return $this->confiseur;
  332.     }
  333.     /**
  334.      * Set domaine
  335.      *
  336.      * @param boolean $domaine
  337.      *
  338.      * @return Message
  339.      */
  340.     public function setDomaine($domaine)
  341.     {
  342.         $this->domaine $domaine;
  343.         return $this;
  344.     }
  345.     /**
  346.      * Get domaine
  347.      *
  348.      * @return bool
  349.      */
  350.     public function getDomaine()
  351.     {
  352.         return $this->domaine;
  353.     }
  354.     /**
  355.      * Set syndicat
  356.      *
  357.      * @param boolean $syndicat
  358.      *
  359.      * @return Message
  360.      */
  361.     public function setSyndicat($syndicat)
  362.     {
  363.         $this->syndicat $syndicat;
  364.         return $this;
  365.     }
  366.     /**
  367.      * Get syndicat
  368.      *
  369.      * @return bool
  370.      */
  371.     public function getSyndicat()
  372.     {
  373.         return $this->syndicat;
  374.     }
  375.     /**
  376.      * Set salaries
  377.      *
  378.      * @param boolean $salaries
  379.      *
  380.      * @return Message
  381.      */
  382.     public function setSalaries($salaries)
  383.     {
  384.         $this->salaries $salaries;
  385.         return $this;
  386.     }
  387.     /**
  388.      * Get salaries
  389.      *
  390.      * @return bool
  391.      */
  392.     public function getSalaries()
  393.     {
  394.         return $this->salaries;
  395.     }
  396.     /**
  397.      * Set administrateur
  398.      *
  399.      * @param boolean $administrateur
  400.      *
  401.      * @return Message
  402.      */
  403.     public function setAdministrateur($administrateur)
  404.     {
  405.         $this->administrateur $administrateur;
  406.         return $this;
  407.     }
  408.     /**
  409.      * Get administrateur
  410.      *
  411.      * @return bool
  412.      */
  413.     public function getAdministrateur()
  414.     {
  415.         return $this->administrateur;
  416.     }
  417.     /**
  418.      * Set syndiclocal
  419.      *
  420.      * @param string $syndiclocal
  421.      *
  422.      * @return Message
  423.      */
  424.     public function setSyndiclocal($syndiclocal)
  425.     {
  426.         $this->syndiclocal $syndiclocal;
  427.         return $this;
  428.     }
  429.     /**
  430.      * Get syndiclocal
  431.      *
  432.      * @return string
  433.      */
  434.     public function getSyndiclocal()
  435.     {
  436.         return $this->syndiclocal;
  437.     }
  438.     /**
  439.      * Set association
  440.      *
  441.      * @param boolean $association
  442.      *
  443.      * @return Message
  444.      */
  445.     public function setAssociation($association)
  446.     {
  447.         $this->association $association;
  448.         return $this;
  449.     }
  450.     /**
  451.      * Get association
  452.      *
  453.      * @return bool
  454.      */
  455.     public function getAssociation()
  456.     {
  457.         return $this->association;
  458.     }
  459.     /**
  460.      * Set membre
  461.      *
  462.      * @param boolean $membre
  463.      *
  464.      * @return Message
  465.      */
  466.     public function setMembre($membre)
  467.     {
  468.         $this->membre $membre;
  469.         return $this;
  470.     }
  471.     /**
  472.      * Get membre
  473.      *
  474.      * @return bool
  475.      */
  476.     public function getMembre()
  477.     {
  478.         return $this->membre;
  479.     }
  480.     /**
  481.      * Set annuaire
  482.      *
  483.      * @param boolean $annuaire
  484.      *
  485.      * @return Message
  486.      */
  487.     public function setAnnuaire($annuaire)
  488.     {
  489.         $this->annuaire $annuaire;
  490.         return $this;
  491.     }
  492.     /**
  493.      * Get annuaire
  494.      *
  495.      * @return bool
  496.      */
  497.     public function getAnnuaire()
  498.     {
  499.         return $this->annuaire;
  500.     }
  501.     /**
  502.      * Set technicien
  503.      *
  504.      * @param boolean $technicien
  505.      *
  506.      * @return Message
  507.      */
  508.     public function setTechnicien($technicien)
  509.     {
  510.         $this->technicien $technicien;
  511.         return $this;
  512.     }
  513.     /**
  514.      * Get technicien
  515.      *
  516.      * @return bool
  517.      */
  518.     public function getTechnicien()
  519.     {
  520.         return $this->technicien;
  521.     }
  522.     /**
  523.      * Set piegeur
  524.      *
  525.      * @param boolean $piegeur
  526.      *
  527.      * @return Message
  528.      */
  529.     public function setPiegeur($piegeur)
  530.     {
  531.         $this->piegeur $piegeur;
  532.         return $this;
  533.     }
  534.     /**
  535.      * Get piegeur
  536.      *
  537.      * @return bool
  538.      */
  539.     public function getPiegeur()
  540.     {
  541.         return $this->piegeur;
  542.     }
  543.     
  544.     /**
  545.      * Get technolive
  546.      *
  547.      * @return bool
  548.      */
  549.     public function getTechnolive()
  550.     {
  551.         return $this->technolive;
  552.     }
  553.     /**
  554.      * Set technolive
  555.      *
  556.      * @param boolean $technolive
  557.      *
  558.      * @return Message
  559.      */
  560.     public function setTechnolive($technolive)
  561.     {
  562.         $this->technolive $technolive;
  563.     
  564.         return $this;
  565.     }
  566.     /**
  567.      * Set syndlocal
  568.      *
  569.      * @param string $syndlocal
  570.      *
  571.      * @return Message
  572.      */
  573.     public function setSyndlocal($syndlocal)
  574.     {
  575.         $this->syndlocal $syndlocal;
  576.         return $this;
  577.     }
  578.     /**
  579.      * Get syndlocal
  580.      *
  581.      * @return string
  582.      */
  583.     public function getSyndlocal()
  584.     {
  585.         return $this->syndlocal;
  586.     }
  587.     public function getCVO(): ?bool
  588.     {
  589.         return $this->CVO;
  590.     }
  591.     public function setCVO(bool $CVO): self
  592.     {
  593.         $this->CVO $CVO;
  594.         return $this;
  595.     }
  596.     public function getCVOC(): ?bool
  597.     {
  598.         return $this->CVOC;
  599.     }
  600.     public function setCVOC(bool $CVOC): self
  601.     {
  602.         $this->CVOC $CVOC;
  603.         return $this;
  604.     }
  605.     /**
  606.      * Add mailzone
  607.      *
  608.      * @param \App\Entity\MailZone $mailzone
  609.      *
  610.      * @return Message
  611.      */
  612.     public function addMailzone(\App\Entity\MailZone $mailzone)
  613.     {
  614.         $this->mailzones[] = $mailzone;
  615.         return $this;
  616.     }
  617.     /**
  618.      * Remove mailzone
  619.      *
  620.      * @param \App\Entity\MailZone $mailzone
  621.      */
  622.     public function removeMailzone(\App\Entity\MailZone $mailzone)
  623.     {
  624.         $this->mailzones->removeElement($mailzone);
  625.     }
  626.     /**
  627.      * Get mailzones
  628.      *
  629.      * @return \Doctrine\Common\Collections\Collection
  630.      */
  631.     public function getMailzones()
  632.     {
  633.         return $this->mailzones;
  634.     }
  635. }