<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Messages
*
* @ORM\Table(name="messages", options={"collate"="latin1_general_ci","charset"="latin1"})
* @ORM\Entity(repositoryClass="App\Repository\MessagesRepository")
*/
class Messages
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Admin", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $idadmin;
/**
* @var \DateTime
*
* @ORM\Column(name="datefr", type="date", nullable=false)
*/
private $datefr;
/**
* @var string
*
* @ORM\Column(name="titre", type="string", length=250, nullable=false)
*/
private $titre;
/**
* @var string
*
* @ORM\Column(name="texte", type="text", nullable=false)
*/
private $texte;
/**
* @var \DateTime
*
* @ORM\Column(name="datereponsefr", type="datetime", nullable=true)
*/
private $datereponsefr;
/**
* @var string
*
* @ORM\Column(name="reponse", type="text", nullable=true)
*/
private $reponse;
/**
* @var boolean
*
* @ORM\Column(name="urgent", type="boolean", nullable=false)
*/
private $urgent;
/**
* @var \DateTime
*
* @ORM\Column(name="datelufr", type="datetime", nullable=true)
*/
private $datelufr;
/**
* @var boolean
*
* @ORM\Column(name="lu", type="boolean", nullable=false)
*/
private $lu;
public function __construct() {
$this->datefr = new \Datetime('now');
$this->urgent = false;
$this->lu = false;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set datefr
*
* @param \DateTime $datefr
* @return Messages
*/
public function setDatefr($datefr)
{
$this->datefr = $datefr;
return $this;
}
/**
* Get datefr
*
* @return \DateTime
*/
public function getDatefr()
{
return $this->datefr;
}
/**
* Set titre
*
* @param string $titre
* @return Messages
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set texte
*
* @param string $texte
* @return Messages
*/
public function setTexte($texte)
{
$this->texte = $texte;
return $this;
}
/**
* Get texte
*
* @return string
*/
public function getTexte()
{
return $this->texte;
}
/**
* Set datereponsefr
*
* @param \DateTime $datereponsefr
* @return Messages
*/
public function setDatereponsefr($datereponsefr)
{
$this->datereponsefr = $datereponsefr;
return $this;
}
/**
* Get datereponsefr
*
* @return \DateTime
*/
public function getDatereponsefr()
{
return $this->datereponsefr;
}
/**
* Set reponse
*
* @param string $reponse
* @return Messages
*/
public function setReponse($reponse)
{
$this->reponse = $reponse;
return $this;
}
/**
* Get reponse
*
* @return string
*/
public function getReponse()
{
return $this->reponse;
}
/**
* Set urgent
*
* @param boolean $urgent
* @return Messages
*/
public function setUrgent($urgent)
{
$this->urgent = $urgent;
return $this;
}
/**
* Get urgent
*
* @return boolean
*/
public function getUrgent()
{
return $this->urgent;
}
/**
* Set datelufr
*
* @param \DateTime $datelufr
* @return Messages
*/
public function setDatelufr($datelufr)
{
$this->datelufr = $datelufr;
return $this;
}
/**
* Get datelufr
*
* @return \DateTime
*/
public function getDatelufr()
{
return $this->datelufr;
}
/**
* Set lu
*
* @param boolean $lu
* @return Messages
*/
public function setLu($lu)
{
$this->lu = $lu;
return $this;
}
/**
* Get lu
*
* @return boolean
*/
public function getLu()
{
return $this->lu;
}
/**
* Set idadmin
*
* @param Admin $idadmin
* @return Messages
*/
public function setIdadmin(Admin $idadmin)
{
$this->idadmin = $idadmin;
return $this;
}
/**
* Get idadmin
*
* @return Admin
*/
public function getIdadmin()
{
return $this->idadmin;
}
}