<?php
namespace TheatreCore\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Messages
*
* @ORM\Table(name="messages", indexes={@ORM\Index(name="status", columns={"status"})})
* @ORM\Entity(repositoryClass="TheatreCore\Repository\MessagesRepository")
*/
class Messages
{
/**
* @var int
*
* @ORM\Column(name="idmessage", type="integer", nullable=false, options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idmessage;
/**
* @var string|null
*
* @ORM\Column(name="sender_name", type="string", length=255, nullable=true)
*/
private $senderName;
/**
* @var string|null
*
* @ORM\Column(name="sender", type="string", length=255, nullable=true)
*/
private $sender;
/**
* @var string|null
*
* @ORM\Column(name="subject", type="string", length=255, nullable=true)
*/
private $subject;
/**
* @var string|null
*
* @ORM\Column(name="message", type="text", length=65535, nullable=true)
*/
private $message;
/**
* @var string|null
*
* @ORM\Column(name="message_plain", type="text", length=65535, nullable=true)
*/
private $messagePlain;
/**
* @var string|null
*
* @ORM\Column(name="message_footer", type="text", length=65535, nullable=true)
*/
private $messageFooter;
/**
* @var string|null
*
* @ORM\Column(name="message_inliner", type="text", length=65535, nullable=true)
*/
private $messageInliner;
/**
* @var string|null
*
* @ORM\Column(name="send_copy_mail", type="string", length=255, nullable=true)
*/
private $sendCopyMail;
/**
* @var string|null
*
* @ORM\Column(name="send_return_path_mail", type="string", length=255, nullable=true)
*/
private $sendReturnPathMail;
/**
* @var bool
*
* @ORM\Column(name="send_receipt", type="boolean", nullable=false)
*/
private $sendReceipt = false;
/**
* @var \DateTime|null
*
* @ORM\Column(name="date_send", type="datetime", nullable=true)
*/
private $dateSend;
/**
* @var string|null
*
* @ORM\Column(name="type_recipients", type="string", length=150, nullable=true)
*/
private $typeRecipients;
/**
* @var int|null
*
* @ORM\Column(name="idclassification", type="integer", nullable=true)
*/
private $idclassification;
/**
* @var string|null
*
* @ORM\Column(name="recipients", type="text", length=65535, nullable=true)
*/
private $recipients;
/**
* @var int
*
* @ORM\Column(name="nb_recipients", type="integer", nullable=false, options={"unsigned"=true})
*/
private $nbRecipients;
/**
* @var bool|null
*
* @ORM\Column(name="is_html", type="boolean", nullable=true)
*/
private $isHtml;
/**
* @var \DateTime|null
*
* @ORM\Column(name="send_at", type="datetime", nullable=true)
*/
private $sendAt;
/**
* @var int|null
*
* @ORM\Column(name="sending_interval", type="integer", nullable=true)
*/
private $sendingInterval;
/**
* @var string|null
*
* @ORM\Column(name="private_comment", type="text", length=65535, nullable=true)
*/
private $privateComment;
/**
* @var string|null
*
* @ORM\Column(name="recipients_query", type="text", length=65535, nullable=true)
*/
private $recipientsQuery;
/**
* @var int|null
*
* @ORM\Column(name="nb_sent", type="integer", nullable=true)
*/
private $nbSent;
/**
* @var \DateTime|null
*
* @ORM\Column(name="dateupdate", type="datetime", nullable=true)
*/
private $dateupdate;
/**
* @var \DateTime|null
*
* @ORM\Column(name="dateinsert", type="datetime", nullable=true)
*/
private $dateinsert;
/**
* @var bool
*
* @ORM\Column(name="status", type="boolean", nullable=false)
*/
private $status = '0';
/**
* @var int|null
*
* @ORM\Column(name="idextranetuser", type="integer", nullable=true, options={"unsigned"=true})
*/
private $idextranetuser;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Directories", mappedBy="idmessage")
*/
private $iddirectorie;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="Extranetusers", mappedBy="idmessage")
*/
private $messageextranetuser;
/**
* Constructor
*/
public function __construct()
{
$this->iddirectorie = new \Doctrine\Common\Collections\ArrayCollection();
$this->messageextranetuser = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get idmessage.
*
* @return int
*/
public function getIdmessage()
{
return $this->idmessage;
}
/**
* Set senderName.
*
* @param string|null $senderName
*
* @return Messages
*/
public function setSenderName($senderName = null)
{
$this->senderName = $senderName;
return $this;
}
/**
* Get senderName.
*
* @return string|null
*/
public function getSenderName()
{
return $this->senderName;
}
/**
* Set sender.
*
* @param string|null $sender
*
* @return Messages
*/
public function setSender($sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Get sender.
*
* @return string|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set subject.
*
* @param string|null $subject
*
* @return Messages
*/
public function setSubject($subject = null)
{
$this->subject = $subject;
return $this;
}
/**
* Get subject.
*
* @return string|null
*/
public function getSubject()
{
return $this->subject;
}
/**
* Set message.
*
* @param string|null $message
*
* @return Messages
*/
public function setMessage($message = null)
{
$this->message = $message;
return $this;
}
/**
* Get message.
*
* @return string|null
*/
public function getMessage()
{
return $this->message;
}
/**
* Set messagePlain.
*
* @param string|null $messagePlain
*
* @return Messages
*/
public function setMessagePlain($messagePlain = null)
{
$this->messagePlain = $messagePlain;
return $this;
}
/**
* Get messagePlain.
*
* @return string|null
*/
public function getMessagePlain()
{
return $this->messagePlain;
}
/**
* Set messageFooter.
*
* @param string|null $messageFooter
*
* @return Messages
*/
public function setMessageFooter($messageFooter = null)
{
$this->messageFooter = $messageFooter;
return $this;
}
/**
* Get messageFooter.
*
* @return string|null
*/
public function getMessageFooter()
{
return $this->messageFooter;
}
/**
* Set messageInliner.
*
* @param string|null $messageInliner
*
* @return Messages
*/
public function setMessageInliner($messageInliner = null)
{
$this->messageInliner = $messageInliner;
return $this;
}
/**
* Get messageInliner.
*
* @return string|null
*/
public function getMessageInliner()
{
return $this->messageInliner;
}
/**
* Set sendCopyMail.
*
* @param string|null $sendCopyMail
*
* @return Messages
*/
public function setSendCopyMail($sendCopyMail = null)
{
$this->sendCopyMail = $sendCopyMail;
return $this;
}
/**
* Get sendCopyMail.
*
* @return string|null
*/
public function getSendCopyMail()
{
return $this->sendCopyMail;
}
/**
* Set sendReturnPathMail.
*
* @param string|null $sendReturnPathMail
*
* @return Messages
*/
public function setSendReturnPathMail($sendReturnPathMail = null)
{
$this->sendReturnPathMail = $sendReturnPathMail;
return $this;
}
/**
* Get sendReturnPathMail.
*
* @return string|null
*/
public function getSendReturnPathMail()
{
return $this->sendReturnPathMail;
}
/**
* Set sendReceipt.
*
* @param bool $sendReceipt
*
* @return Messages
*/
public function setSendReceipt($sendReceipt)
{
$this->sendReceipt = $sendReceipt;
return $this;
}
/**
* Get sendReceipt.
*
* @return bool
*/
public function getSendReceipt()
{
return $this->sendReceipt;
}
/**
* Set dateSend.
*
* @param \DateTime|null $dateSend
*
* @return Messages
*/
public function setDateSend($dateSend = null)
{
$this->dateSend = $dateSend;
return $this;
}
/**
* Get dateSend.
*
* @return \DateTime|null
*/
public function getDateSend()
{
return $this->dateSend;
}
/**
* Set typeRecipients.
*
* @param string|null $typeRecipients
*
* @return Messages
*/
public function setTypeRecipients($typeRecipients = null)
{
$this->typeRecipients = $typeRecipients;
return $this;
}
/**
* Get typeRecipients.
*
* @return string|null
*/
public function getTypeRecipients()
{
return $this->typeRecipients;
}
/**
* Set idclassification.
*
* @param int|null $idclassification
*
* @return Messages
*/
public function setIdclassification($idclassification = null)
{
$this->idclassification = $idclassification;
return $this;
}
/**
* Get idclassification.
*
* @return int|null
*/
public function getIdclassification()
{
return $this->idclassification;
}
/**
* Set recipients.
*
* @param string|null $recipients
*
* @return Messages
*/
public function setRecipients($recipients = null)
{
$this->recipients = $recipients;
return $this;
}
/**
* Get recipients.
*
* @return string|null
*/
public function getRecipients()
{
return $this->recipients;
}
/**
* Set nbRecipients.
*
* @param int $nbRecipients
*
* @return Messages
*/
public function setNbRecipients($nbRecipients)
{
$this->nbRecipients = $nbRecipients;
return $this;
}
/**
* Get nbRecipients.
*
* @return int
*/
public function getNbRecipients()
{
return $this->nbRecipients;
}
/**
* Set isHtml.
*
* @param bool|null $isHtml
*
* @return Messages
*/
public function setIsHtml($isHtml = null)
{
$this->isHtml = $isHtml;
return $this;
}
/**
* Get isHtml.
*
* @return bool|null
*/
public function getIsHtml()
{
return $this->isHtml;
}
/**
* Set sendAt.
*
* @param \DateTime|null $sendAt
*
* @return Messages
*/
public function setSendAt($sendAt = null)
{
$this->sendAt = $sendAt;
return $this;
}
/**
* Get sendAt.
*
* @return \DateTime|null
*/
public function getSendAt()
{
return $this->sendAt;
}
/**
* Set sendingInterval.
*
* @param int|null $sendingInterval
*
* @return Messages
*/
public function setSendingInterval($sendingInterval = null)
{
$this->sendingInterval = $sendingInterval;
return $this;
}
/**
* Get sendingInterval.
*
* @return int|null
*/
public function getSendingInterval()
{
return $this->sendingInterval;
}
/**
* Set privateComment.
*
* @param string|null $privateComment
*
* @return Messages
*/
public function setPrivateComment($privateComment = null)
{
$this->privateComment = $privateComment;
return $this;
}
/**
* Get privateComment.
*
* @return string|null
*/
public function getPrivateComment()
{
return $this->privateComment;
}
/**
* Set recipientsQuery.
*
* @param string|null $recipientsQuery
*
* @return Messages
*/
public function setRecipientsQuery($recipientsQuery = null)
{
$this->recipientsQuery = $recipientsQuery;
return $this;
}
/**
* Get recipientsQuery.
*
* @return string|null
*/
public function getRecipientsQuery()
{
return $this->recipientsQuery;
}
/**
* Set nbSent.
*
* @param int|null $nbSent
*
* @return Messages
*/
public function setNbSent($nbSent = null)
{
$this->nbSent = $nbSent;
return $this;
}
/**
* Get nbSent.
*
* @return int|null
*/
public function getNbSent()
{
return $this->nbSent;
}
/**
* Set dateupdate.
*
* @param \DateTime|null $dateupdate
*
* @return Messages
*/
public function setDateupdate($dateupdate = null)
{
$this->dateupdate = $dateupdate;
return $this;
}
/**
* Get dateupdate.
*
* @return \DateTime|null
*/
public function getDateupdate()
{
return $this->dateupdate;
}
/**
* Set dateinsert.
*
* @param \DateTime|null $dateinsert
*
* @return Messages
*/
public function setDateinsert($dateinsert = null)
{
$this->dateinsert = $dateinsert;
return $this;
}
/**
* Get dateinsert.
*
* @return \DateTime|null
*/
public function getDateinsert()
{
return $this->dateinsert;
}
/**
* Set status.
*
* @param bool $status
*
* @return Messages
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status.
*
* @return bool
*/
public function getStatus()
{
return $this->status;
}
/**
* Set idextranetuser.
*
* @param int|null $idextranetuser
*
* @return Messages
*/
public function setIdextranetuser($idextranetuser = null)
{
$this->idextranetuser = $idextranetuser;
return $this;
}
/**
* Get idextranetuser.
*
* @return int|null
*/
public function getIdextranetuser()
{
return $this->idextranetuser;
}
/**
* Add iddirectorie.
*
* @param \Directories $iddirectorie
*
* @return Messages
*/
public function addIddirectorie(Directories $iddirectorie)
{
$this->iddirectorie[] = $iddirectorie;
return $this;
}
/**
* Remove iddirectorie.
*
* @param \Directories $iddirectorie
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeIddirectorie(Directories $iddirectorie)
{
return $this->iddirectorie->removeElement($iddirectorie);
}
/**
* Get iddirectorie.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getIddirectorie()
{
return $this->iddirectorie;
}
/**
* Add messageextranetuser.
*
* @param \Extranetusers $messageextranetuser
*
* @return Messages
*/
public function addMessageextranetuser(Extranetusers $messageextranetuser)
{
$this->messageextranetuser[] = $messageextranetuser;
return $this;
}
/**
* Remove messageextranetuser.
*
* @param \Extranetusers $messageextranetuser
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeMessageextranetuser(Extranetusers $messageextranetuser)
{
return $this->messageextranetuser->removeElement($messageextranetuser);
}
/**
* Get messageextranetuser.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getMessageextranetuser()
{
return $this->messageextranetuser;
}
}