vendor/uvdesk/core-framework/Entity/Ticket.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Ticket
  6.  * @ORM\Entity(repositoryClass="Webkul\UVDesk\CoreFrameworkBundle\Repository\TicketRepository")
  7.  * @ORM\HasLifecycleCallbacks
  8.  * @ORM\Table(name="uv_ticket")
  9.  */
  10. class Ticket
  11. {
  12.     const AGENT_GLOBAL_ACCESS 'TICKET_GLOBAL';
  13.     const AGENT_GROUP_ACCESS 'TICKET_GROUP';
  14.     const AGENT_TEAM_ACCESS 'TICKET_TEAM';
  15.     const AGENT_INDIVIDUAL_ACCESS 'TICKET_INDIVIDUAL';
  16.     /**
  17.      * @var integer
  18.      * @ORM\Id()
  19.      * @ORM\Column(type="integer")
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      * @ORM\Column(type="string", length=191)
  26.      */
  27.     private $numeracion;
  28.     /**
  29.      * @var string
  30.      * @ORM\Column(type="string", length=191)
  31.      */
  32.     private $source;
  33.     /**
  34.      * @var string
  35.      * @ORM\Column(type="string", length=191, nullable=true)
  36.      */
  37.     private $mailboxEmail;
  38.     /**
  39.      * @var string
  40.      * @ORM\Column(type="text", nullable=true)
  41.      */
  42.     private $subject;
  43.     
  44.     /**
  45.      * @var string
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $reference;
  49.     /**
  50.      * @var string
  51.      * @ORM\Column(type="text", nullable=true)
  52.      */
  53.     private $referenceIds;
  54.     /**
  55.      * @var boolean
  56.      * @ORM\Column(type="boolean", options={"default": true})
  57.      */
  58.     private $isNew true;
  59.     /**
  60.      * @var boolean
  61.      * @ORM\Column(type="boolean", options={"default": false})
  62.      */
  63.     private $isReplied false;
  64.     /**
  65.      * @var boolean
  66.      * @ORM\Column(type="boolean", options={"default": true})
  67.      */
  68.     private $isReplyEnabled true;
  69.     /**
  70.      * @var boolean
  71.      * @ORM\Column(type="boolean", options={"default": false})
  72.      */
  73.     private $isStarred false;
  74.     /**
  75.      * @var boolean
  76.      * @ORM\Column(type="boolean", options={"default": false})
  77.      */
  78.     private $isTrashed false;
  79.     /**
  80.      * @var boolean
  81.      * @ORM\Column(type="boolean", options={"default": false})
  82.      */
  83.     private $isAgentViewed false;
  84.     /**
  85.      * @var boolean
  86.      * @ORM\Column(type="boolean", options={"default": false})
  87.      */
  88.     private $isCustomerViewed false;
  89.     /**
  90.      * @var \DateTime
  91.      * @ORM\Column(type="datetime")
  92.      */
  93.     private $createdAt;
  94.     /**
  95.      * @var \DateTime
  96.      * @ORM\Column(type="datetime")
  97.      */
  98.     private $updatedAt;
  99.     /**
  100.      * @var \Doctrine\Common\Collections\Collection
  101.      * @ORM\OneToMany(targetEntity="Thread", mappedBy="ticket")
  102.      */
  103.     private $threads;
  104.     /**
  105.      * @var \Doctrine\Common\Collections\Collection
  106.      * @ORM\OneToMany(targetEntity="TicketRating", mappedBy="ticket")
  107.      */
  108.     private $ratings;
  109.     /**
  110.      * @var \Doctrine\Common\Collections\Collection
  111.      * @ORM\ManyToMany(targetEntity="User")
  112.      * @ORM\JoinTable(name="uv_tickets_collaborators",
  113.      *      joinColumns={@ORM\JoinColumn(name="ticket_id", referencedColumnName="id", onDelete="CASCADE")},
  114.      *      inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")}
  115.      * )
  116.      */
  117.     private $collaborators;
  118.     /**
  119.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus
  120.      * @ORM\ManyToOne(targetEntity="TicketStatus")
  121.      * @ORM\JoinColumn(name="status_id", referencedColumnName="id")
  122.      */
  123.     private $status;
  124.     /**
  125.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority
  126.      * @ORM\ManyToOne(targetEntity="TicketPriority")
  127.      * @ORM\JoinColumn(name="priority_id", referencedColumnName="id")
  128.      */
  129.     private $priority;
  130.     /**
  131.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType
  132.      * @ORM\ManyToOne(targetEntity="TicketType")
  133.      * @ORM\JoinColumn(name="type_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  134.      */
  135.     private $type;
  136.     
  137.       /**
  138.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTicketSubtypes
  139.      * @ORM\ManyToOne(targetEntity="SupportTicketSubtypes")
  140.      * @ORM\JoinColumn(name="subtype_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  141.      */
  142.     private $subtype;
  143.     /**
  144.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  145.      * @ORM\ManyToOne(targetEntity="User")
  146.      * @ORM\JoinColumn(name="customer_id", referencedColumnName="id", onDelete="CASCADE")
  147.      */
  148.      
  149.      
  150.     private $customer;
  151.     /**
  152.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  153.      * @ORM\ManyToOne(targetEntity="User")
  154.      * @ORM\JoinColumn(name="agent_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  155.      */
  156.     private $agent;
  157.     /**
  158.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup
  159.      * @ORM\ManyToOne(targetEntity="SupportGroup", inversedBy="tickets")
  160.      * @ORM\JoinColumn(name="group_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  161.      */
  162.     private $supportGroup;
  163.     /**
  164.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam
  165.      * @ORM\ManyToOne(targetEntity="SupportTeam")
  166.      * @ORM\JoinColumn(name="subGroup_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  167.      */
  168.     private $supportTeam;
  169.     /**
  170.      * @var \Doctrine\Common\Collections\Collection
  171.      * @ORM\ManyToMany(targetEntity="Tag")
  172.      * @ORM\JoinTable(name="uv_tickets_tags",
  173.      *      joinColumns={@ORM\JoinColumn(name="ticket_id", referencedColumnName="id", onDelete="CASCADE")},
  174.      *      inverseJoinColumns={@ORM\JoinColumn(name="tag_id", referencedColumnName="id", onDelete="CASCADE")}
  175.      * )
  176.      */
  177.     private $supportTags;
  178.     /**
  179.      * @var \Doctrine\Common\Collections\Collection
  180.      * @ORM\ManyToMany(targetEntity="SupportLabel")
  181.      * @ORM\JoinTable(name="uv_tickets_labels",
  182.      *      joinColumns={@ORM\JoinColumn(name="ticket_id", referencedColumnName="id", onDelete="CASCADE")},
  183.      *      inverseJoinColumns={@ORM\JoinColumn(name="label_id", referencedColumnName="id", onDelete="CASCADE")}
  184.      * )
  185.      */
  186.     private $supportLabels;
  187.     /**
  188.      * @var integer
  189.      * @ORM\Column(type="integer")
  190.      */
  191.     private $codigo_series;
  192.     /**
  193.      * @var string
  194.      * @ORM\Column(type="string", length=191, nullable=true)
  195.      */
  196.     private $businessImpact;
  197.     /**
  198.      * @var string
  199.      * @ORM\Column(type="string", length=191, nullable=true)
  200.      */
  201.     private $whatsapp;
  202.     /**
  203.      * @var string
  204.      * @ORM\Column(type="string", length=191, nullable=true)
  205.      */
  206.     private $urlPlataforma;
  207.     /**
  208.      * Constructor
  209.      */
  210.     public function __construct()
  211.     {
  212.         $this->threads = new \Doctrine\Common\Collections\ArrayCollection();
  213.         $this->ratings = new \Doctrine\Common\Collections\ArrayCollection();
  214.         $this->supportTags = new \Doctrine\Common\Collections\ArrayCollection();
  215.         $this->supportLabels = new \Doctrine\Common\Collections\ArrayCollection();
  216.     }
  217.     /**
  218.      * Get id
  219.      *
  220.      * @return integer
  221.      */
  222.     public function getId()
  223.     {
  224.         return $this->id;
  225.     }
  226.     /**
  227.      * @ORM\PrePersist()
  228.      */
  229.     public function preSave() {
  230.         $length 3;
  231.         $randomletter substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0$length);
  232.         $randomnumber substr(str_shuffle("0123456789"), 0$length);
  233.         $this->numeracion $randomnumber .'-'strtoupper($randomletter);
  234.     }
  235.     public function getNumeracion()
  236.     {
  237.         return $this->numeracion;
  238.     }
  239.     /**
  240.      * Set source
  241.      *
  242.      * @param string $source
  243.      *
  244.      * @return Ticket
  245.      */
  246.     public function setSource($source)
  247.     {
  248.         $this->source $source;
  249.         return $this;
  250.     }
  251.     /**
  252.      * Get source
  253.      *
  254.      * @return string
  255.      */
  256.     public function getSource()
  257.     {
  258.         return $this->source;
  259.     }
  260.     /**
  261.      * Set mailboxEmail
  262.      *
  263.      * @param string $mailboxEmail
  264.      *
  265.      * @return Ticket
  266.      */
  267.     public function setMailboxEmail($mailboxEmail)
  268.     {
  269.         $this->mailboxEmail $mailboxEmail;
  270.         return $this;
  271.     }
  272.     /**
  273.      * Get mailboxEmail
  274.      *
  275.      * @return string
  276.      */
  277.     public function getMailboxEmail()
  278.     {
  279.         return $this->mailboxEmail;
  280.     }
  281.     /**
  282.      * Set subject
  283.      *
  284.      * @param string $subject
  285.      *
  286.      * @return Ticket
  287.      */
  288.     public function setSubject($subject)
  289.     {
  290.         $this->subject $subject;
  291.         return $this;
  292.     }
  293.     /**
  294.      * Get subject
  295.      *
  296.      * @return string
  297.      */
  298.     public function getSubject()
  299.     {
  300.         return $this->subject;
  301.     }
  302.     
  303.     /**
  304.      * Set reference
  305.      *
  306.      * @param string $reference
  307.      *
  308.      * @return Ticket
  309.      */
  310.     public function setReference($reference)
  311.     {
  312.         $this->reference $reference;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get reference
  317.      *
  318.      * @return string
  319.      */
  320.     public function getReference()
  321.     {
  322.         return $this->reference;
  323.     }
  324.     /**
  325.      * Set referenceIds
  326.      *
  327.      * @param string $referenceIds
  328.      *
  329.      * @return Ticket
  330.      */
  331.     public function setReferenceIds($referenceIds)
  332.     {
  333.         $this->referenceIds $referenceIds;
  334.         return $this;
  335.     }
  336.     /**
  337.      * Get referenceIds
  338.      *
  339.      * @return string
  340.      */
  341.     public function getReferenceIds()
  342.     {
  343.         return $this->referenceIds;
  344.     }
  345.     /**
  346.      * Set isNew
  347.      *
  348.      * @param boolean $isNew
  349.      *
  350.      * @return Ticket
  351.      */
  352.     public function setIsNew($isNew)
  353.     {
  354.         $this->isNew $isNew;
  355.         return $this;
  356.     }
  357.     /**
  358.      * Get isNew
  359.      *
  360.      * @return boolean
  361.      */
  362.     public function getIsNew()
  363.     {
  364.         return $this->isNew;
  365.     }
  366.     /**
  367.      * Set isReplied
  368.      *
  369.      * @param boolean $isReplied
  370.      *
  371.      * @return Ticket
  372.      */
  373.     public function setIsReplied($isReplied)
  374.     {
  375.         $this->isReplied $isReplied;
  376.         return $this;
  377.     }
  378.     /**
  379.      * Get isReplied
  380.      *
  381.      * @return boolean
  382.      */
  383.     public function getIsReplied()
  384.     {
  385.         return $this->isReplied;
  386.     }
  387.     /**
  388.      * Set isReplyEnabled
  389.      *
  390.      * @param boolean $isReplyEnabled
  391.      *
  392.      * @return Ticket
  393.      */
  394.     public function setIsReplyEnabled($isReplyEnabled)
  395.     {
  396.         $this->isReplyEnabled $isReplyEnabled;
  397.         return $this;
  398.     }
  399.     /**
  400.      * Get isReplyEnabled
  401.      *
  402.      * @return boolean
  403.      */
  404.     public function getIsReplyEnabled()
  405.     {
  406.         return $this->isReplyEnabled;
  407.     }
  408.     /**
  409.      * Set isStarred
  410.      *
  411.      * @param boolean $isStarred
  412.      *
  413.      * @return Ticket
  414.      */
  415.     public function setIsStarred($isStarred)
  416.     {
  417.         $this->isStarred $isStarred;
  418.         return $this;
  419.     }
  420.     /**
  421.      * Get isStarred
  422.      *
  423.      * @return boolean
  424.      */
  425.     public function getIsStarred()
  426.     {
  427.         return $this->isStarred;
  428.     }
  429.     /**
  430.      * Set isTrashed
  431.      *
  432.      * @param boolean $isTrashed
  433.      *
  434.      * @return Ticket
  435.      */
  436.     public function setIsTrashed($isTrashed)
  437.     {
  438.         $this->isTrashed $isTrashed;
  439.         return $this;
  440.     }
  441.     /**
  442.      * Get isTrashed
  443.      *
  444.      * @return boolean
  445.      */
  446.     public function getIsTrashed()
  447.     {
  448.         return $this->isTrashed;
  449.     }
  450.     /**
  451.      * Set isAgentViewed
  452.      *
  453.      * @param boolean $isAgentViewed
  454.      *
  455.      * @return Ticket
  456.      */
  457.     public function setIsAgentViewed($isAgentViewed)
  458.     {
  459.         $this->isAgentViewed $isAgentViewed;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get isAgentViewed
  464.      *
  465.      * @return boolean
  466.      */
  467.     public function getIsAgentViewed()
  468.     {
  469.         return $this->isAgentViewed;
  470.     }
  471.     /**
  472.      * Set isCustomerViewed
  473.      *
  474.      * @param boolean $isCustomerViewed
  475.      *
  476.      * @return Ticket
  477.      */
  478.     public function setIsCustomerViewed($isCustomerViewed)
  479.     {
  480.         $this->isCustomerViewed $isCustomerViewed;
  481.         return $this;
  482.     }
  483.     /**
  484.      * Get isCustomerViewed
  485.      *
  486.      * @return boolean
  487.      */
  488.     public function getIsCustomerViewed()
  489.     {
  490.         return $this->isCustomerViewed;
  491.     }
  492.     /**
  493.      * Set createdAt
  494.      *
  495.      * @param \DateTime $createdAt
  496.      *
  497.      * @return Ticket
  498.      */
  499.     public function setCreatedAt($createdAt)
  500.     {
  501.         $this->createdAt $createdAt;
  502.         return $this;
  503.     }
  504.     /**
  505.      * Get createdAt
  506.      *
  507.      * @return \DateTime
  508.      */
  509.     public function getCreatedAt()
  510.     {
  511.         return $this->createdAt;
  512.     }
  513.     /**
  514.      * Set updatedAt
  515.      *
  516.      * @param \DateTime $updatedAt
  517.      *
  518.      * @return Ticket
  519.      */
  520.     public function setUpdatedAt($updatedAt)
  521.     {
  522.         $this->updatedAt $updatedAt;
  523.         return $this;
  524.     }
  525.     /**
  526.      * Get updatedAt
  527.      *
  528.      * @return \DateTime
  529.      */
  530.     public function getUpdatedAt()
  531.     {
  532.         return $this->updatedAt;
  533.     }
  534.     /**
  535.      * Add thread
  536.      *
  537.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread
  538.      *
  539.      * @return Ticket
  540.      */
  541.     public function addThread(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread)
  542.     {
  543.         $this->threads[] = $thread;
  544.         return $this;
  545.     }
  546.     /**
  547.      * Remove thread
  548.      *
  549.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread
  550.      */
  551.     public function removeThread(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread)
  552.     {
  553.         $this->threads->removeElement($thread);
  554.     }
  555.     /**
  556.      * Get threads
  557.      *
  558.      * @return \Doctrine\Common\Collections\Collection
  559.      */
  560.     public function getThreads()
  561.     {
  562.         return $this->threads;
  563.     }
  564.     /**
  565.      * Add rating
  566.      *
  567.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating
  568.      *
  569.      * @return Ticket
  570.      */
  571.     public function addRating(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating)
  572.     {
  573.         $this->ratings[] = $rating;
  574.         return $this;
  575.     }
  576.     /**
  577.      * Remove rating
  578.      *
  579.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating
  580.      */
  581.     public function removeRating(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating)
  582.     {
  583.         $this->ratings->removeElement($rating);
  584.     }
  585.     /**
  586.      * Get ratings
  587.      *
  588.      * @return \Doctrine\Common\Collections\Collection
  589.      */
  590.     public function getRatings()
  591.     {
  592.         return $this->ratings;
  593.     }
  594.     /**
  595.      * Add collaborators
  596.      *
  597.      * @param \Webkul\UserBundle\Entity\User $collaborators
  598.      * @return Ticket
  599.      */
  600.     public function addCollaborator(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $collaborators)
  601.     {
  602.         $this->collaborators[] = $collaborators;
  603.         return $this;
  604.     }
  605.     /**
  606.      * Remove collaborators
  607.      *
  608.      * @param \Webkul\UserBundle\Entity\User $collaborators
  609.      */
  610.     public function removeCollaborator(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $collaborators)
  611.     {
  612.         $this->collaborators->removeElement($collaborators);
  613.     }
  614.     /**
  615.      * Get collaborators
  616.      *
  617.      * @return \Doctrine\Common\Collections\Collection
  618.      */
  619.     public function getCollaborators()
  620.     {
  621.         return $this->collaborators;
  622.     }
  623.     /**
  624.      * Set status
  625.      *
  626.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus $status
  627.      *
  628.      * @return Ticket
  629.      */
  630.     public function setStatus(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus $status null)
  631.     {
  632.         $this->status $status;
  633.         return $this;
  634.     }
  635.     /**
  636.      * Get status
  637.      *
  638.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus
  639.      */
  640.     public function getStatus()
  641.     {
  642.         return $this->status;
  643.     }
  644.     /**
  645.      * Set priority
  646.      *
  647.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority $priority
  648.      *
  649.      * @return Ticket
  650.      */
  651.     public function setPriority(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority $priority null)
  652.     {
  653.         $this->priority $priority;
  654.         return $this;
  655.     }
  656.     /**
  657.      * Get priority
  658.      *
  659.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority
  660.      */
  661.     public function getPriority()
  662.     {
  663.         return $this->priority;
  664.     }
  665.     /**
  666.      * Set type
  667.      *
  668.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType $type
  669.      *
  670.      * @return Ticket
  671.      */
  672.     public function setType(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType $type null)
  673.     {
  674.         $this->type $type;
  675.         return $this;
  676.     }
  677.     /**
  678.      * Get type
  679.      *
  680.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType
  681.      */
  682.     public function getType()
  683.     {
  684.         return $this->type;
  685.     }
  686.     
  687.     
  688.      /**
  689.      * Set subtype
  690.      *
  691.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTicketSubtypes $subtype
  692.      *
  693.      * @return Ticket
  694.      */
  695.     public function setSubtype(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTicketSubtypes $subtype null)
  696.     {
  697.         $this->subtype $subtype;
  698.         return $this;
  699.     }
  700.     /**
  701.      * Get subtype
  702.      *
  703.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTicketSubtypes
  704.      */
  705.     public function getSubtype()
  706.     {
  707.         return $this->subtype;
  708.     }
  709.     /**
  710.      * Set customer
  711.      *
  712.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\User $customer
  713.      *
  714.      * @return Ticket
  715.      */
  716.     public function setCustomer(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $customer null)
  717.     {
  718.         $this->customer $customer;
  719.         return $this;
  720.     }
  721.     /**
  722.      * Get customer
  723.      *
  724.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  725.      */
  726.     public function getCustomer()
  727.     {
  728.         return $this->customer;
  729.     }
  730.     /**
  731.      * Set agent
  732.      *
  733.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\User $agent
  734.      *
  735.      * @return Ticket
  736.      */
  737.     public function setAgent(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $agent null)
  738.     {
  739.         $this->agent $agent;
  740.         return $this;
  741.     }
  742.     /**
  743.      * Get agent
  744.      *
  745.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  746.      */
  747.     public function getAgent()
  748.     {
  749.         return $this->agent;
  750.     }
  751.     /**
  752.      * Set supportGroup
  753.      *
  754.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup
  755.      *
  756.      * @return Ticket
  757.      */
  758.     public function setSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup null)
  759.     {
  760.         $this->supportGroup $supportGroup;
  761.         return $this;
  762.     }
  763.     /**
  764.      * Get supportGroup
  765.      *
  766.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup
  767.      */
  768.     public function getSupportGroup()
  769.     {
  770.         return $this->supportGroup;
  771.     }
  772.     /**
  773.      * Set supportTeam
  774.      *
  775.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam
  776.      *
  777.      * @return Ticket
  778.      */
  779.     public function setSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam null)
  780.     {
  781.         $this->supportTeam $supportTeam;
  782.         return $this;
  783.     }
  784.     public function getCodigoSeries()
  785.     {
  786.         return $this->codigo_series;
  787.     }
  788.    public function setCodigoSeries($codigoSeries)
  789.     {
  790.         $this->codigo_series $codigoSeries;
  791.         return $this;
  792.     }
  793.     /**
  794.      * Get supportTeam
  795.      *
  796.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam
  797.      */
  798.     public function getSupportTeam()
  799.     {
  800.         return $this->supportTeam;
  801.     }
  802.     /**
  803.      * Add supportTag
  804.      *
  805.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag
  806.      *
  807.      * @return Ticket
  808.      */
  809.     public function addSupportTag(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag)
  810.     {
  811.         $this->supportTags[] = $supportTag;
  812.         return $this;
  813.     }
  814.     /**
  815.      * Remove supportTag
  816.      *
  817.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag
  818.      */
  819.     public function removeSupportTag(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag)
  820.     {
  821.         $this->supportTags->removeElement($supportTag);
  822.     }
  823.     /**
  824.      * Get supportTags
  825.      *
  826.      * @return \Doctrine\Common\Collections\Collection
  827.      */
  828.     public function getSupportTags()
  829.     {
  830.         return $this->supportTags;
  831.     }
  832.     /**
  833.      * Add supportLabel
  834.      *
  835.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel
  836.      *
  837.      * @return Ticket
  838.      */
  839.     public function addSupportLabel(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel)
  840.     {
  841.         $this->supportLabels[] = $supportLabel;
  842.         return $this;
  843.     }
  844.     /**
  845.      * Remove supportLabel
  846.      *
  847.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel
  848.      */
  849.     public function removeSupportLabel(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel)
  850.     {
  851.         $this->supportLabels->removeElement($supportLabel);
  852.     }
  853.     /**
  854.      * Get supportLabels
  855.      *
  856.      * @return \Doctrine\Common\Collections\Collection
  857.      */
  858.     public function getSupportLabels()
  859.     {
  860.         return $this->supportLabels;
  861.     }
  862.     /**
  863.      * Get formatted $createdAt
  864.      *
  865.      * @return \DateTime
  866.      */
  867.     public function getFormatedCreatedAt()
  868.     {
  869.         return $this->formatedCreatedAt;
  870.     }
  871.     /**
  872.      * Set businessImpact
  873.      *
  874.      * @param string $whatsapp
  875.      *
  876.      * @return Ticket
  877.      */
  878.     public function setBusinessImpact($businessImpact)
  879.     {
  880.         $this->businessImpact $businessImpact;
  881.         return $this;
  882.     }
  883.     /**
  884.      * Get businessImpact
  885.      *
  886.      * @return string
  887.      */
  888.     public function getBusinessImpact()
  889.     {
  890.         return $this->businessImpact;
  891.     }
  892.     /**
  893.      * Set whatsapp
  894.      *
  895.      * @param string $whatsapp
  896.      *
  897.      * @return Ticket
  898.      */
  899.     public function setWhatsapp($whatsapp)
  900.     {
  901.         $this->whatsapp $whatsapp;
  902.         return $this;
  903.     }
  904.     /**
  905.      * Get businessImpact
  906.      *
  907.      * @return string
  908.      */
  909.     public function getWhatsapp()
  910.     {
  911.         return $this->whatsapp;
  912.     }
  913.     /**
  914.      * Set urlPlataforma
  915.      *
  916.      * @param string $urlPlataforma
  917.      *
  918.      * @return Ticket
  919.      */
  920.     public function setUrlPlataforma($urlPlataforma)
  921.     {
  922.         $this->urlPlataforma $urlPlataforma;
  923.         return $this;
  924.     }
  925.     /**
  926.      * Get urlPlataforma
  927.      *
  928.      * @return string
  929.      */
  930.     public function getUrlPlataforma()
  931.     {
  932.         return $this->urlPlataforma;
  933.     }
  934. }