src/Entity/Mail.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MailRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=MailRepository::class)
  8.  */
  9. class Mail
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=4083, nullable=true)
  19.      */
  20.     private $subject;
  21.     /**
  22.      * @ORM\Column(type="string", length=1023)
  23.      */
  24.     private $sender;
  25.     /**
  26.      * @ORM\Column(type="string", length=1023)
  27.      */
  28.     private $receiver;
  29.     /**
  30.      * @ORM\Column(type="string", length=255)
  31.      */
  32.     private $receiveDate;
  33.     /**
  34.      * @ORM\Column(type="string", length=2047)
  35.      */
  36.     private $message_id;
  37.     /**
  38.      * @ORM\Column(type="integer")
  39.      */
  40.     private $message_uid;
  41.     /**
  42.      * @ORM\Column(type="text", length=65535)
  43.      */
  44.     private $message_text;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity=Agent::class,cascade={"persist"})
  47.      */
  48.     private $agent;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=Customer::class,cascade={"persist"})
  51.      */
  52.     private $customer;
  53.     /**
  54.      * @ORM\OneToMany(targetEntity=MailAttachment::class, mappedBy="mail", orphanRemoval=true)
  55.      */
  56.     private $mailAttachments;
  57.     public function __construct()
  58.     {
  59.         $this->mailAttachments = new ArrayCollection();
  60.     }
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     /**
  66.      * @return mixed
  67.      */
  68.     public function getSubject()
  69.     {
  70.         return $this->subject;
  71.     }
  72.     /**
  73.      * @param mixed $subject
  74.      */
  75.     public function setSubject($subject): void
  76.     {
  77.         $this->subject $subject;
  78.     }
  79.     /**
  80.      * @return mixed
  81.      */
  82.     public function getSender()
  83.     {
  84.         return $this->sender;
  85.     }
  86.     /**
  87.      * @param mixed $sender
  88.      */
  89.     public function setSender($sender): void
  90.     {
  91.         $this->sender $sender;
  92.     }
  93.     /**
  94.      * @return mixed
  95.      */
  96.     public function getReceiver()
  97.     {
  98.         return $this->receiver;
  99.     }
  100.     /**
  101.      * @param mixed $receiver
  102.      */
  103.     public function setReceiver($receiver): void
  104.     {
  105.         $this->receiver $receiver;
  106.     }
  107.     /**
  108.      * @return mixed
  109.      */
  110.     public function getReceiveDate()
  111.     {
  112.         return $this->receiveDate;
  113.     }
  114.     /**
  115.      * @param mixed $receiveDate
  116.      */
  117.     public function setReceiveDate($receiveDate): void
  118.     {
  119.         $this->receiveDate $receiveDate;
  120.     }
  121.     /**
  122.      * @return mixed
  123.      */
  124.     public function getMessageId()
  125.     {
  126.         return $this->message_id;
  127.     }
  128.     /**
  129.      * @param mixed $message_id
  130.      */
  131.     public function setMessageId($message_id): void
  132.     {
  133.         $this->message_id $message_id;
  134.     }
  135.     /**
  136.      * @return mixed
  137.      */
  138.     public function getMessageUid()
  139.     {
  140.         return $this->message_uid;
  141.     }
  142.     /**
  143.      * @param mixed $message_uid
  144.      */
  145.     public function setMessageUid($message_uid): void
  146.     {
  147.         $this->message_uid $message_uid;
  148.     }
  149.     /**
  150.      * @return ?Agent
  151.      */
  152.     public function getAgent()
  153.     {
  154.         return $this->agent;
  155.     }
  156.     /**
  157.      * @param ?Agent $agent
  158.      */
  159.     public function setAgent($agent): void
  160.     {
  161.         $this->agent $agent;
  162.     }
  163.     /**
  164.      * @return ?Customer
  165.      */
  166.     public function getCustomer()
  167.     {
  168.         return $this->customer;
  169.     }
  170.     /**
  171.      * @param ?Customer $customer
  172.      */
  173.     public function setCustomer($customer): void
  174.     {
  175.         $this->customer $customer;
  176.     }
  177.     /**
  178.      * @return mixed
  179.      */
  180.     public function getMessageText()
  181.     {
  182.         return $this->message_text;
  183.     }
  184.     /**
  185.      * @param mixed $message_text
  186.      */
  187.     public function setMessageText($message_text): void
  188.     {
  189.         $this->message_text $message_text;
  190.     }
  191.     /**
  192.      * @return mixed
  193.      */
  194.     public function getMailAttachments()
  195.     {
  196.         return $this->mailAttachments;
  197.     }
  198.     /**
  199.      * @param mixed $mailAttachments
  200.      */
  201.     public function setMailAttachments($mailAttachments): void
  202.     {
  203.         $this->mailAttachments $mailAttachments;
  204.     }
  205. }