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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Messages
  6.  *
  7.  * @ORM\Table(name="messages", indexes={@ORM\Index(name="status", columns={"status"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\MessagesRepository")
  9.  */
  10. class Messages
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idmessage", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idmessage;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="sender_name", type="string", length=255, nullable=true)
  24.      */
  25.     private $senderName;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="sender", type="string", length=255, nullable=true)
  30.      */
  31.     private $sender;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="subject", type="string", length=255, nullable=true)
  36.      */
  37.     private $subject;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="message", type="text", length=65535, nullable=true)
  42.      */
  43.     private $message;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="message_plain", type="text", length=65535, nullable=true)
  48.      */
  49.     private $messagePlain;
  50.     /**
  51.      * @var string|null
  52.      *
  53.      * @ORM\Column(name="message_footer", type="text", length=65535, nullable=true)
  54.      */
  55.     private $messageFooter;
  56.     /**
  57.      * @var string|null
  58.      *
  59.      * @ORM\Column(name="message_inliner", type="text", length=65535, nullable=true)
  60.      */
  61.     private $messageInliner;
  62.     /**
  63.      * @var string|null
  64.      *
  65.      * @ORM\Column(name="send_copy_mail", type="string", length=255, nullable=true)
  66.      */
  67.     private $sendCopyMail;
  68.     /**
  69.      * @var string|null
  70.      *
  71.      * @ORM\Column(name="send_return_path_mail", type="string", length=255, nullable=true)
  72.      */
  73.     private $sendReturnPathMail;
  74.     /**
  75.      * @var bool
  76.      *
  77.      * @ORM\Column(name="send_receipt", type="boolean", nullable=false)
  78.      */
  79.     private $sendReceipt false;
  80.     /**
  81.      * @var \DateTime|null
  82.      *
  83.      * @ORM\Column(name="date_send", type="datetime", nullable=true)
  84.      */
  85.     private $dateSend;
  86.     /**
  87.      * @var string|null
  88.      *
  89.      * @ORM\Column(name="type_recipients", type="string", length=150, nullable=true)
  90.      */
  91.     private $typeRecipients;
  92.     /**
  93.      * @var int|null
  94.      *
  95.      * @ORM\Column(name="idclassification", type="integer", nullable=true)
  96.      */
  97.     private $idclassification;
  98.     /**
  99.      * @var string|null
  100.      *
  101.      * @ORM\Column(name="recipients", type="text", length=65535, nullable=true)
  102.      */
  103.     private $recipients;
  104.     /**
  105.      * @var int
  106.      *
  107.      * @ORM\Column(name="nb_recipients", type="integer", nullable=false, options={"unsigned"=true})
  108.      */
  109.     private $nbRecipients;
  110.     /**
  111.      * @var bool|null
  112.      *
  113.      * @ORM\Column(name="is_html", type="boolean", nullable=true)
  114.      */
  115.     private $isHtml;
  116.     /**
  117.      * @var \DateTime|null
  118.      *
  119.      * @ORM\Column(name="send_at", type="datetime", nullable=true)
  120.      */
  121.     private $sendAt;
  122.     /**
  123.      * @var int|null
  124.      *
  125.      * @ORM\Column(name="sending_interval", type="integer", nullable=true)
  126.      */
  127.     private $sendingInterval;
  128.     /**
  129.      * @var string|null
  130.      *
  131.      * @ORM\Column(name="private_comment", type="text", length=65535, nullable=true)
  132.      */
  133.     private $privateComment;
  134.     /**
  135.      * @var string|null
  136.      *
  137.      * @ORM\Column(name="recipients_query", type="text", length=65535, nullable=true)
  138.      */
  139.     private $recipientsQuery;
  140.     /**
  141.      * @var int|null
  142.      *
  143.      * @ORM\Column(name="nb_sent", type="integer", nullable=true)
  144.      */
  145.     private $nbSent;
  146.     /**
  147.      * @var \DateTime|null
  148.      *
  149.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true)
  150.      */
  151.     private $dateupdate;
  152.     /**
  153.      * @var \DateTime|null
  154.      *
  155.      * @ORM\Column(name="dateinsert", type="datetime", nullable=true)
  156.      */
  157.     private $dateinsert;
  158.     /**
  159.      * @var bool
  160.      *
  161.      * @ORM\Column(name="status", type="boolean", nullable=false)
  162.      */
  163.     private $status '0';
  164.     /**
  165.      * @var int|null
  166.      *
  167.      * @ORM\Column(name="idextranetuser", type="integer", nullable=true, options={"unsigned"=true})
  168.      */
  169.     private $idextranetuser;
  170.     /**
  171.      * @var \Doctrine\Common\Collections\Collection
  172.      *
  173.      * @ORM\ManyToMany(targetEntity="Directories", mappedBy="idmessage")
  174.      */
  175.     private $iddirectorie;
  176.     /**
  177.      * @var \Doctrine\Common\Collections\Collection
  178.      *
  179.      * @ORM\ManyToMany(targetEntity="Extranetusers", mappedBy="idmessage")
  180.      */
  181.     private $messageextranetuser;
  182.     /**
  183.      * Constructor
  184.      */
  185.     public function __construct()
  186.     {
  187.         $this->iddirectorie = new \Doctrine\Common\Collections\ArrayCollection();
  188.         $this->messageextranetuser = new \Doctrine\Common\Collections\ArrayCollection();
  189.     }
  190.     /**
  191.      * Get idmessage.
  192.      *
  193.      * @return int
  194.      */
  195.     public function getIdmessage()
  196.     {
  197.         return $this->idmessage;
  198.     }
  199.     /**
  200.      * Set senderName.
  201.      *
  202.      * @param string|null $senderName
  203.      *
  204.      * @return Messages
  205.      */
  206.     public function setSenderName($senderName null)
  207.     {
  208.         $this->senderName $senderName;
  209.         return $this;
  210.     }
  211.     /**
  212.      * Get senderName.
  213.      *
  214.      * @return string|null
  215.      */
  216.     public function getSenderName()
  217.     {
  218.         return $this->senderName;
  219.     }
  220.     /**
  221.      * Set sender.
  222.      *
  223.      * @param string|null $sender
  224.      *
  225.      * @return Messages
  226.      */
  227.     public function setSender($sender null)
  228.     {
  229.         $this->sender $sender;
  230.         return $this;
  231.     }
  232.     /**
  233.      * Get sender.
  234.      *
  235.      * @return string|null
  236.      */
  237.     public function getSender()
  238.     {
  239.         return $this->sender;
  240.     }
  241.     /**
  242.      * Set subject.
  243.      *
  244.      * @param string|null $subject
  245.      *
  246.      * @return Messages
  247.      */
  248.     public function setSubject($subject null)
  249.     {
  250.         $this->subject $subject;
  251.         return $this;
  252.     }
  253.     /**
  254.      * Get subject.
  255.      *
  256.      * @return string|null
  257.      */
  258.     public function getSubject()
  259.     {
  260.         return $this->subject;
  261.     }
  262.     /**
  263.      * Set message.
  264.      *
  265.      * @param string|null $message
  266.      *
  267.      * @return Messages
  268.      */
  269.     public function setMessage($message null)
  270.     {
  271.         $this->message $message;
  272.         return $this;
  273.     }
  274.     /**
  275.      * Get message.
  276.      *
  277.      * @return string|null
  278.      */
  279.     public function getMessage()
  280.     {
  281.         return $this->message;
  282.     }
  283.     /**
  284.      * Set messagePlain.
  285.      *
  286.      * @param string|null $messagePlain
  287.      *
  288.      * @return Messages
  289.      */
  290.     public function setMessagePlain($messagePlain null)
  291.     {
  292.         $this->messagePlain $messagePlain;
  293.         return $this;
  294.     }
  295.     /**
  296.      * Get messagePlain.
  297.      *
  298.      * @return string|null
  299.      */
  300.     public function getMessagePlain()
  301.     {
  302.         return $this->messagePlain;
  303.     }
  304.     /**
  305.      * Set messageFooter.
  306.      *
  307.      * @param string|null $messageFooter
  308.      *
  309.      * @return Messages
  310.      */
  311.     public function setMessageFooter($messageFooter null)
  312.     {
  313.         $this->messageFooter $messageFooter;
  314.         return $this;
  315.     }
  316.     /**
  317.      * Get messageFooter.
  318.      *
  319.      * @return string|null
  320.      */
  321.     public function getMessageFooter()
  322.     {
  323.         return $this->messageFooter;
  324.     }
  325.     /**
  326.      * Set messageInliner.
  327.      *
  328.      * @param string|null $messageInliner
  329.      *
  330.      * @return Messages
  331.      */
  332.     public function setMessageInliner($messageInliner null)
  333.     {
  334.         $this->messageInliner $messageInliner;
  335.         return $this;
  336.     }
  337.     /**
  338.      * Get messageInliner.
  339.      *
  340.      * @return string|null
  341.      */
  342.     public function getMessageInliner()
  343.     {
  344.         return $this->messageInliner;
  345.     }
  346.     /**
  347.      * Set sendCopyMail.
  348.      *
  349.      * @param string|null $sendCopyMail
  350.      *
  351.      * @return Messages
  352.      */
  353.     public function setSendCopyMail($sendCopyMail null)
  354.     {
  355.         $this->sendCopyMail $sendCopyMail;
  356.         return $this;
  357.     }
  358.     /**
  359.      * Get sendCopyMail.
  360.      *
  361.      * @return string|null
  362.      */
  363.     public function getSendCopyMail()
  364.     {
  365.         return $this->sendCopyMail;
  366.     }
  367.     /**
  368.      * Set sendReturnPathMail.
  369.      *
  370.      * @param string|null $sendReturnPathMail
  371.      *
  372.      * @return Messages
  373.      */
  374.     public function setSendReturnPathMail($sendReturnPathMail null)
  375.     {
  376.         $this->sendReturnPathMail $sendReturnPathMail;
  377.         return $this;
  378.     }
  379.     /**
  380.      * Get sendReturnPathMail.
  381.      *
  382.      * @return string|null
  383.      */
  384.     public function getSendReturnPathMail()
  385.     {
  386.         return $this->sendReturnPathMail;
  387.     }
  388.     /**
  389.      * Set sendReceipt.
  390.      *
  391.      * @param bool $sendReceipt
  392.      *
  393.      * @return Messages
  394.      */
  395.     public function setSendReceipt($sendReceipt)
  396.     {
  397.         $this->sendReceipt $sendReceipt;
  398.         return $this;
  399.     }
  400.     /**
  401.      * Get sendReceipt.
  402.      *
  403.      * @return bool
  404.      */
  405.     public function getSendReceipt()
  406.     {
  407.         return $this->sendReceipt;
  408.     }
  409.     /**
  410.      * Set dateSend.
  411.      *
  412.      * @param \DateTime|null $dateSend
  413.      *
  414.      * @return Messages
  415.      */
  416.     public function setDateSend($dateSend null)
  417.     {
  418.         $this->dateSend $dateSend;
  419.         return $this;
  420.     }
  421.     /**
  422.      * Get dateSend.
  423.      *
  424.      * @return \DateTime|null
  425.      */
  426.     public function getDateSend()
  427.     {
  428.         return $this->dateSend;
  429.     }
  430.     /**
  431.      * Set typeRecipients.
  432.      *
  433.      * @param string|null $typeRecipients
  434.      *
  435.      * @return Messages
  436.      */
  437.     public function setTypeRecipients($typeRecipients null)
  438.     {
  439.         $this->typeRecipients $typeRecipients;
  440.         return $this;
  441.     }
  442.     /**
  443.      * Get typeRecipients.
  444.      *
  445.      * @return string|null
  446.      */
  447.     public function getTypeRecipients()
  448.     {
  449.         return $this->typeRecipients;
  450.     }
  451.     /**
  452.      * Set idclassification.
  453.      *
  454.      * @param int|null $idclassification
  455.      *
  456.      * @return Messages
  457.      */
  458.     public function setIdclassification($idclassification null)
  459.     {
  460.         $this->idclassification $idclassification;
  461.         return $this;
  462.     }
  463.     /**
  464.      * Get idclassification.
  465.      *
  466.      * @return int|null
  467.      */
  468.     public function getIdclassification()
  469.     {
  470.         return $this->idclassification;
  471.     }
  472.     /**
  473.      * Set recipients.
  474.      *
  475.      * @param string|null $recipients
  476.      *
  477.      * @return Messages
  478.      */
  479.     public function setRecipients($recipients null)
  480.     {
  481.         $this->recipients $recipients;
  482.         return $this;
  483.     }
  484.     /**
  485.      * Get recipients.
  486.      *
  487.      * @return string|null
  488.      */
  489.     public function getRecipients()
  490.     {
  491.         return $this->recipients;
  492.     }
  493.     /**
  494.      * Set nbRecipients.
  495.      *
  496.      * @param int $nbRecipients
  497.      *
  498.      * @return Messages
  499.      */
  500.     public function setNbRecipients($nbRecipients)
  501.     {
  502.         $this->nbRecipients $nbRecipients;
  503.         return $this;
  504.     }
  505.     /**
  506.      * Get nbRecipients.
  507.      *
  508.      * @return int
  509.      */
  510.     public function getNbRecipients()
  511.     {
  512.         return $this->nbRecipients;
  513.     }
  514.     /**
  515.      * Set isHtml.
  516.      *
  517.      * @param bool|null $isHtml
  518.      *
  519.      * @return Messages
  520.      */
  521.     public function setIsHtml($isHtml null)
  522.     {
  523.         $this->isHtml $isHtml;
  524.         return $this;
  525.     }
  526.     /**
  527.      * Get isHtml.
  528.      *
  529.      * @return bool|null
  530.      */
  531.     public function getIsHtml()
  532.     {
  533.         return $this->isHtml;
  534.     }
  535.     /**
  536.      * Set sendAt.
  537.      *
  538.      * @param \DateTime|null $sendAt
  539.      *
  540.      * @return Messages
  541.      */
  542.     public function setSendAt($sendAt null)
  543.     {
  544.         $this->sendAt $sendAt;
  545.         return $this;
  546.     }
  547.     /**
  548.      * Get sendAt.
  549.      *
  550.      * @return \DateTime|null
  551.      */
  552.     public function getSendAt()
  553.     {
  554.         return $this->sendAt;
  555.     }
  556.     /**
  557.      * Set sendingInterval.
  558.      *
  559.      * @param int|null $sendingInterval
  560.      *
  561.      * @return Messages
  562.      */
  563.     public function setSendingInterval($sendingInterval null)
  564.     {
  565.         $this->sendingInterval $sendingInterval;
  566.         return $this;
  567.     }
  568.     /**
  569.      * Get sendingInterval.
  570.      *
  571.      * @return int|null
  572.      */
  573.     public function getSendingInterval()
  574.     {
  575.         return $this->sendingInterval;
  576.     }
  577.     /**
  578.      * Set privateComment.
  579.      *
  580.      * @param string|null $privateComment
  581.      *
  582.      * @return Messages
  583.      */
  584.     public function setPrivateComment($privateComment null)
  585.     {
  586.         $this->privateComment $privateComment;
  587.         return $this;
  588.     }
  589.     /**
  590.      * Get privateComment.
  591.      *
  592.      * @return string|null
  593.      */
  594.     public function getPrivateComment()
  595.     {
  596.         return $this->privateComment;
  597.     }
  598.     /**
  599.      * Set recipientsQuery.
  600.      *
  601.      * @param string|null $recipientsQuery
  602.      *
  603.      * @return Messages
  604.      */
  605.     public function setRecipientsQuery($recipientsQuery null)
  606.     {
  607.         $this->recipientsQuery $recipientsQuery;
  608.         return $this;
  609.     }
  610.     /**
  611.      * Get recipientsQuery.
  612.      *
  613.      * @return string|null
  614.      */
  615.     public function getRecipientsQuery()
  616.     {
  617.         return $this->recipientsQuery;
  618.     }
  619.     /**
  620.      * Set nbSent.
  621.      *
  622.      * @param int|null $nbSent
  623.      *
  624.      * @return Messages
  625.      */
  626.     public function setNbSent($nbSent null)
  627.     {
  628.         $this->nbSent $nbSent;
  629.         return $this;
  630.     }
  631.     /**
  632.      * Get nbSent.
  633.      *
  634.      * @return int|null
  635.      */
  636.     public function getNbSent()
  637.     {
  638.         return $this->nbSent;
  639.     }
  640.     /**
  641.      * Set dateupdate.
  642.      *
  643.      * @param \DateTime|null $dateupdate
  644.      *
  645.      * @return Messages
  646.      */
  647.     public function setDateupdate($dateupdate null)
  648.     {
  649.         $this->dateupdate $dateupdate;
  650.         return $this;
  651.     }
  652.     /**
  653.      * Get dateupdate.
  654.      *
  655.      * @return \DateTime|null
  656.      */
  657.     public function getDateupdate()
  658.     {
  659.         return $this->dateupdate;
  660.     }
  661.     /**
  662.      * Set dateinsert.
  663.      *
  664.      * @param \DateTime|null $dateinsert
  665.      *
  666.      * @return Messages
  667.      */
  668.     public function setDateinsert($dateinsert null)
  669.     {
  670.         $this->dateinsert $dateinsert;
  671.         return $this;
  672.     }
  673.     /**
  674.      * Get dateinsert.
  675.      *
  676.      * @return \DateTime|null
  677.      */
  678.     public function getDateinsert()
  679.     {
  680.         return $this->dateinsert;
  681.     }
  682.     /**
  683.      * Set status.
  684.      *
  685.      * @param bool $status
  686.      *
  687.      * @return Messages
  688.      */
  689.     public function setStatus($status)
  690.     {
  691.         $this->status $status;
  692.         return $this;
  693.     }
  694.     /**
  695.      * Get status.
  696.      *
  697.      * @return bool
  698.      */
  699.     public function getStatus()
  700.     {
  701.         return $this->status;
  702.     }
  703.     /**
  704.      * Set idextranetuser.
  705.      *
  706.      * @param int|null $idextranetuser
  707.      *
  708.      * @return Messages
  709.      */
  710.     public function setIdextranetuser($idextranetuser null)
  711.     {
  712.         $this->idextranetuser $idextranetuser;
  713.         return $this;
  714.     }
  715.     /**
  716.      * Get idextranetuser.
  717.      *
  718.      * @return int|null
  719.      */
  720.     public function getIdextranetuser()
  721.     {
  722.         return $this->idextranetuser;
  723.     }
  724.     /**
  725.      * Add iddirectorie.
  726.      *
  727.      * @param \Directories $iddirectorie
  728.      *
  729.      * @return Messages
  730.      */
  731.     public function addIddirectorie(Directories $iddirectorie)
  732.     {
  733.         $this->iddirectorie[] = $iddirectorie;
  734.         return $this;
  735.     }
  736.     /**
  737.      * Remove iddirectorie.
  738.      *
  739.      * @param \Directories $iddirectorie
  740.      *
  741.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  742.      */
  743.     public function removeIddirectorie(Directories $iddirectorie)
  744.     {
  745.         return $this->iddirectorie->removeElement($iddirectorie);
  746.     }
  747.     /**
  748.      * Get iddirectorie.
  749.      *
  750.      * @return \Doctrine\Common\Collections\Collection
  751.      */
  752.     public function getIddirectorie()
  753.     {
  754.         return $this->iddirectorie;
  755.     }
  756.     /**
  757.      * Add messageextranetuser.
  758.      *
  759.      * @param \Extranetusers $messageextranetuser
  760.      *
  761.      * @return Messages
  762.      */
  763.     public function addMessageextranetuser(Extranetusers $messageextranetuser)
  764.     {
  765.         $this->messageextranetuser[] = $messageextranetuser;
  766.         return $this;
  767.     }
  768.     /**
  769.      * Remove messageextranetuser.
  770.      *
  771.      * @param \Extranetusers $messageextranetuser
  772.      *
  773.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  774.      */
  775.     public function removeMessageextranetuser(Extranetusers $messageextranetuser)
  776.     {
  777.         return $this->messageextranetuser->removeElement($messageextranetuser);
  778.     }
  779.     /**
  780.      * Get messageextranetuser.
  781.      *
  782.      * @return \Doctrine\Common\Collections\Collection
  783.      */
  784.     public function getMessageextranetuser()
  785.     {
  786.         return $this->messageextranetuser;
  787.     }
  788. }