<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Message
*
* @ORM\Table(name="messages")
* @ORM\Entity(repositoryClass="App\Repository\MessageRepository")
*/
class Message
{
/**
* @ORM\ManyToMany(targetEntity="MailZone")
* @ORM\JoinTable(name="mailzones_messages",
* joinColumns={@ORM\JoinColumn(name="message_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="mailzone_id", referencedColumnName="id")}
* )
*/
private $mailzones;
public function __construct() {
$this->mailzones = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var \DateTime
*
* @ORM\Column(name="date", type="datetime")
*/
private $date;
/**
* @var string
*
* @ORM\Column(name="titre", type="string", length=255)
*/
private $titre;
/**
* @var int
*
* @ORM\Column(name="nombre", type="integer")
*/
private $nombre = '0';
/**
* @var string
*
* @ORM\Column(name="texte", type="text")
*/
private $texte;
/**
* @var string
*
* @ORM\Column(name="destinataires", type="text")
*/
private $destinataires = "";
/**
* @var bool
*
* @ORM\Column(name="type", type="boolean")
*/
private $type;
/**
* @var bool
*
* @ORM\Column(name="moulin", type="boolean")
*/
private $moulin;
/**
* @var bool
*
* @ORM\Column(name="confiseur", type="boolean")
*/
private $confiseur;
/**
* @var bool
*
* @ORM\Column(name="domaine", type="boolean")
*/
private $domaine;
/**
* @var bool
*
* @ORM\Column(name="syndicat", type="boolean")
*/
private $syndicat;
/**
* @var bool
*
* @ORM\Column(name="salaries", type="boolean")
*/
private $salaries;
/**
* @var bool
*
* @ORM\Column(name="administrateur", type="boolean")
*/
private $administrateur;
/**
* @var bool
*
* @ORM\Column(name="syndiclocal", type="boolean")
*/
private $syndiclocal;
/**
* @var bool
*
* @ORM\Column(name="association", type="boolean")
*/
private $association;
/**
* @var bool
*
* @ORM\Column(name="membre", type="boolean")
*/
private $membre;
/**
* @var bool
*
* @ORM\Column(name="annuaire", type="boolean")
*/
private $annuaire = '0';
/**
* @var bool
*
* @ORM\Column(name="technicien", type="boolean")
*/
private $technicien;
/**
* @var bool
*
* @ORM\Column(name="piegeur", type="boolean")
*/
private $piegeur = false;
/**
* @var bool
*
* @ORM\Column(name="technolive", type="boolean")
*/
private $technolive = false;
/**
* @ORM\Column(type="boolean")
*/
private $CVO;
/**
* @ORM\Column(type="boolean")
*/
private $CVOC;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set date
*
* @param \DateTime $date
*
* @return Message
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Get date
*
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* Set titre
*
* @param string $titre
*
* @return Message
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set nombre
*
* @param integer $nombre
*
* @return Message
*/
public function setNombre($nombre)
{
$this->nombre = $nombre;
return $this;
}
/**
* Get nombre
*
* @return int
*/
public function getNombre()
{
return $this->nombre;
}
/**
* Set texte
*
* @param string $texte
*
* @return Message
*/
public function setTexte($texte)
{
$this->texte = $texte;
return $this;
}
/**
* Get texte
*
* @return string
*/
public function getTexte()
{
return $this->texte;
}
/**
* Set destinataires
*
* @param string $destinataires
*
* @return Message
*/
public function setDestinataires($destinataires)
{
$this->destinataires = $destinataires;
return $this;
}
/**
* Get destinataires
*
* @return string
*/
public function getDestinataires()
{
return $this->destinataires;
}
/**
* Set type
*
* @param boolean $type
*
* @return Message
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return bool
*/
public function getType()
{
return $this->type;
}
/**
* Set moulin
*
* @param boolean $moulin
*
* @return Message
*/
public function setMoulin($moulin)
{
$this->moulin = $moulin;
return $this;
}
/**
* Get moulin
*
* @return bool
*/
public function getMoulin()
{
return $this->moulin;
}
/**
* Set confiseur
*
* @param boolean $confiseur
*
* @return Message
*/
public function setConfiseur($confiseur)
{
$this->confiseur = $confiseur;
return $this;
}
/**
* Get confiseur
*
* @return bool
*/
public function getConfiseur()
{
return $this->confiseur;
}
/**
* Set domaine
*
* @param boolean $domaine
*
* @return Message
*/
public function setDomaine($domaine)
{
$this->domaine = $domaine;
return $this;
}
/**
* Get domaine
*
* @return bool
*/
public function getDomaine()
{
return $this->domaine;
}
/**
* Set syndicat
*
* @param boolean $syndicat
*
* @return Message
*/
public function setSyndicat($syndicat)
{
$this->syndicat = $syndicat;
return $this;
}
/**
* Get syndicat
*
* @return bool
*/
public function getSyndicat()
{
return $this->syndicat;
}
/**
* Set salaries
*
* @param boolean $salaries
*
* @return Message
*/
public function setSalaries($salaries)
{
$this->salaries = $salaries;
return $this;
}
/**
* Get salaries
*
* @return bool
*/
public function getSalaries()
{
return $this->salaries;
}
/**
* Set administrateur
*
* @param boolean $administrateur
*
* @return Message
*/
public function setAdministrateur($administrateur)
{
$this->administrateur = $administrateur;
return $this;
}
/**
* Get administrateur
*
* @return bool
*/
public function getAdministrateur()
{
return $this->administrateur;
}
/**
* Set syndiclocal
*
* @param string $syndiclocal
*
* @return Message
*/
public function setSyndiclocal($syndiclocal)
{
$this->syndiclocal = $syndiclocal;
return $this;
}
/**
* Get syndiclocal
*
* @return string
*/
public function getSyndiclocal()
{
return $this->syndiclocal;
}
/**
* Set association
*
* @param boolean $association
*
* @return Message
*/
public function setAssociation($association)
{
$this->association = $association;
return $this;
}
/**
* Get association
*
* @return bool
*/
public function getAssociation()
{
return $this->association;
}
/**
* Set membre
*
* @param boolean $membre
*
* @return Message
*/
public function setMembre($membre)
{
$this->membre = $membre;
return $this;
}
/**
* Get membre
*
* @return bool
*/
public function getMembre()
{
return $this->membre;
}
/**
* Set annuaire
*
* @param boolean $annuaire
*
* @return Message
*/
public function setAnnuaire($annuaire)
{
$this->annuaire = $annuaire;
return $this;
}
/**
* Get annuaire
*
* @return bool
*/
public function getAnnuaire()
{
return $this->annuaire;
}
/**
* Set technicien
*
* @param boolean $technicien
*
* @return Message
*/
public function setTechnicien($technicien)
{
$this->technicien = $technicien;
return $this;
}
/**
* Get technicien
*
* @return bool
*/
public function getTechnicien()
{
return $this->technicien;
}
/**
* Set piegeur
*
* @param boolean $piegeur
*
* @return Message
*/
public function setPiegeur($piegeur)
{
$this->piegeur = $piegeur;
return $this;
}
/**
* Get piegeur
*
* @return bool
*/
public function getPiegeur()
{
return $this->piegeur;
}
/**
* Get technolive
*
* @return bool
*/
public function getTechnolive()
{
return $this->technolive;
}
/**
* Set technolive
*
* @param boolean $technolive
*
* @return Message
*/
public function setTechnolive($technolive)
{
$this->technolive = $technolive;
return $this;
}
/**
* Set syndlocal
*
* @param string $syndlocal
*
* @return Message
*/
public function setSyndlocal($syndlocal)
{
$this->syndlocal = $syndlocal;
return $this;
}
/**
* Get syndlocal
*
* @return string
*/
public function getSyndlocal()
{
return $this->syndlocal;
}
public function getCVO(): ?bool
{
return $this->CVO;
}
public function setCVO(bool $CVO): self
{
$this->CVO = $CVO;
return $this;
}
public function getCVOC(): ?bool
{
return $this->CVOC;
}
public function setCVOC(bool $CVOC): self
{
$this->CVOC = $CVOC;
return $this;
}
/**
* Add mailzone
*
* @param \App\Entity\MailZone $mailzone
*
* @return Message
*/
public function addMailzone(\App\Entity\MailZone $mailzone)
{
$this->mailzones[] = $mailzone;
return $this;
}
/**
* Remove mailzone
*
* @param \App\Entity\MailZone $mailzone
*/
public function removeMailzone(\App\Entity\MailZone $mailzone)
{
$this->mailzones->removeElement($mailzone);
}
/**
* Get mailzones
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMailzones()
{
return $this->mailzones;
}
}