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 $source;
  28.     /**
  29.      * @var string
  30.      * @ORM\Column(type="string", length=191, nullable=true)
  31.      */
  32.     private $mailboxEmail;
  33.     /**
  34.      * @var string
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $subject;
  38.     /**
  39.      * @var string
  40.      * @ORM\Column(type="text", nullable=true)
  41.      */
  42.     private $referenceIds;
  43.     /**
  44.      * @var string
  45.      * @ORM\Column(type="text", nullable=true)
  46.      */
  47.     private $outlookConversationId;
  48.     /**
  49.      * @var boolean
  50.      * @ORM\Column(type="boolean", options={"default": true})
  51.      */
  52.     private $isNew true;
  53.     /**
  54.      * @var boolean
  55.      * @ORM\Column(type="boolean", options={"default": false})
  56.      */
  57.     private $isReplied false;
  58.     /**
  59.      * @var boolean
  60.      * @ORM\Column(type="boolean", options={"default": true})
  61.      */
  62.     private $isReplyEnabled true;
  63.     /**
  64.      * @var boolean
  65.      * @ORM\Column(type="boolean", options={"default": false})
  66.      */
  67.     private $isStarred false;
  68.     /**
  69.      * @var boolean
  70.      * @ORM\Column(type="boolean", options={"default": false})
  71.      */
  72.     private $isTrashed false;
  73.     /**
  74.      * @var boolean
  75.      * @ORM\Column(type="boolean", options={"default": false})
  76.      */
  77.     private $isAgentViewed false;
  78.     /**
  79.      * @var boolean
  80.      * @ORM\Column(type="boolean", options={"default": false})
  81.      */
  82.     private $isCustomerViewed false;
  83.     /**
  84.      * @var \DateTime
  85.      * @ORM\Column(type="datetime")
  86.      */
  87.     private $createdAt;
  88.     /**
  89.      * @var \DateTime
  90.      * @ORM\Column(type="datetime")
  91.      */
  92.     private $updatedAt;
  93.     /**
  94.      * @var \Doctrine\Common\Collections\Collection
  95.      * @ORM\OneToMany(targetEntity="Thread", mappedBy="ticket")
  96.      */
  97.     private $threads;
  98.     /**
  99.      * @var \Doctrine\Common\Collections\Collection
  100.      * @ORM\OneToMany(targetEntity="TicketRating", mappedBy="ticket")
  101.      */
  102.     private $ratings;
  103.     /**
  104.      * @var \Doctrine\Common\Collections\Collection
  105.      * @ORM\ManyToMany(targetEntity="User")
  106.      * @ORM\JoinTable(name="uv_tickets_collaborators",
  107.      *      joinColumns={@ORM\JoinColumn(name="ticket_id", referencedColumnName="id", onDelete="CASCADE")},
  108.      *      inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")}
  109.      * )
  110.      */
  111.     private $collaborators;
  112.     /**
  113.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus
  114.      * @ORM\ManyToOne(targetEntity="TicketStatus")
  115.      * @ORM\JoinColumn(name="status_id", referencedColumnName="id")
  116.      */
  117.     private $status;
  118.     /**
  119.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority
  120.      * @ORM\ManyToOne(targetEntity="TicketPriority")
  121.      * @ORM\JoinColumn(name="priority_id", referencedColumnName="id")
  122.      */
  123.     private $priority;
  124.     /**
  125.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType
  126.      * @ORM\ManyToOne(targetEntity="TicketType")
  127.      * @ORM\JoinColumn(name="type_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  128.      */
  129.     private $type;
  130.     /**
  131.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  132.      * @ORM\ManyToOne(targetEntity="User")
  133.      * @ORM\JoinColumn(name="customer_id", referencedColumnName="id", onDelete="CASCADE")
  134.      */
  135.     private $customer;
  136.     /**
  137.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  138.      * @ORM\ManyToOne(targetEntity="User")
  139.      * @ORM\JoinColumn(name="agent_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  140.      */
  141.     private $agent;
  142.     /**
  143.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup
  144.      * @ORM\ManyToOne(targetEntity="SupportGroup", inversedBy="tickets")
  145.      * @ORM\JoinColumn(name="group_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  146.      */
  147.     private $supportGroup;
  148.     /**
  149.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam
  150.      * @ORM\ManyToOne(targetEntity="SupportTeam")
  151.      * @ORM\JoinColumn(name="subGroup_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  152.      */
  153.     private $supportTeam;
  154.     /**
  155.      * @var \Doctrine\Common\Collections\Collection
  156.      * @ORM\ManyToMany(targetEntity="Tag")
  157.      * @ORM\JoinTable(name="uv_tickets_tags",
  158.      *      joinColumns={@ORM\JoinColumn(name="ticket_id", referencedColumnName="id", onDelete="CASCADE")},
  159.      *      inverseJoinColumns={@ORM\JoinColumn(name="tag_id", referencedColumnName="id", onDelete="CASCADE")}
  160.      * )
  161.      */
  162.     private $supportTags;
  163.     /**
  164.      * @var \Doctrine\Common\Collections\Collection
  165.      * @ORM\ManyToMany(targetEntity="SupportLabel")
  166.      * @ORM\JoinTable(name="uv_tickets_labels",
  167.      *      joinColumns={@ORM\JoinColumn(name="ticket_id", referencedColumnName="id", onDelete="CASCADE")},
  168.      *      inverseJoinColumns={@ORM\JoinColumn(name="label_id", referencedColumnName="id", onDelete="CASCADE")}
  169.      * )
  170.      */
  171.     private $supportLabels;
  172.     /**
  173.      * Constructor
  174.      */
  175.     public function __construct()
  176.     {
  177.         $this->threads = new \Doctrine\Common\Collections\ArrayCollection();
  178.         $this->ratings = new \Doctrine\Common\Collections\ArrayCollection();
  179.         $this->supportTags = new \Doctrine\Common\Collections\ArrayCollection();
  180.         $this->supportLabels = new \Doctrine\Common\Collections\ArrayCollection();
  181.     }
  182.     /**
  183.      * Get id
  184.      *
  185.      * @return integer
  186.      */
  187.     public function getId()
  188.     {
  189.         return $this->id;
  190.     }
  191.     /**
  192.      * Set source
  193.      *
  194.      * @param string $source
  195.      *
  196.      * @return Ticket
  197.      */
  198.     public function setSource($source)
  199.     {
  200.         $this->source $source;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get source
  205.      *
  206.      * @return string
  207.      */
  208.     public function getSource()
  209.     {
  210.         return $this->source;
  211.     }
  212.     /**
  213.      * Set mailboxEmail
  214.      *
  215.      * @param string $mailboxEmail
  216.      *
  217.      * @return Ticket
  218.      */
  219.     public function setMailboxEmail($mailboxEmail)
  220.     {
  221.         $this->mailboxEmail $mailboxEmail;
  222.         return $this;
  223.     }
  224.     /**
  225.      * Get mailboxEmail
  226.      *
  227.      * @return string
  228.      */
  229.     public function getMailboxEmail()
  230.     {
  231.         return $this->mailboxEmail;
  232.     }
  233.     /**
  234.      * Set subject
  235.      *
  236.      * @param string $subject
  237.      *
  238.      * @return Ticket
  239.      */
  240.     public function setSubject($subject)
  241.     {
  242.         $this->subject $subject;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Get subject
  247.      *
  248.      * @return string
  249.      */
  250.     public function getSubject()
  251.     {
  252.         return $this->subject;
  253.     }
  254.     /**
  255.      * Set referenceIds
  256.      *
  257.      * @param string $referenceIds
  258.      *
  259.      * @return Ticket
  260.      */
  261.     public function setReferenceIds($referenceIds)
  262.     {
  263.         $this->referenceIds $referenceIds;
  264.         return $this;
  265.     }
  266.     /**
  267.      * Get referenceIds
  268.      *
  269.      * @return string
  270.      */
  271.     public function getReferenceIds()
  272.     {
  273.         return $this->referenceIds;
  274.     }
  275.     /**
  276.      * Set outlookConversationId
  277.      *
  278.      * @param string $outlookConversationId
  279.      *
  280.      * @return Ticket
  281.      */
  282.     public function setOutlookConversationId($outlookConversationId)
  283.     {
  284.         $this->outlookConversationId $outlookConversationId;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Get outlookConversationId
  289.      *
  290.      * @return string
  291.      */
  292.     public function getOutlookConversationId()
  293.     {
  294.         return $this->outlookConversationId;
  295.     }
  296.     /**
  297.      * Set isNew
  298.      *
  299.      * @param boolean $isNew
  300.      *
  301.      * @return Ticket
  302.      */
  303.     public function setIsNew($isNew)
  304.     {
  305.         $this->isNew $isNew;
  306.         return $this;
  307.     }
  308.     /**
  309.      * Get isNew
  310.      *
  311.      * @return boolean
  312.      */
  313.     public function getIsNew()
  314.     {
  315.         return $this->isNew;
  316.     }
  317.     /**
  318.      * Set isReplied
  319.      *
  320.      * @param boolean $isReplied
  321.      *
  322.      * @return Ticket
  323.      */
  324.     public function setIsReplied($isReplied)
  325.     {
  326.         $this->isReplied $isReplied;
  327.         return $this;
  328.     }
  329.     /**
  330.      * Get isReplied
  331.      *
  332.      * @return boolean
  333.      */
  334.     public function getIsReplied()
  335.     {
  336.         return $this->isReplied;
  337.     }
  338.     /**
  339.      * Set isReplyEnabled
  340.      *
  341.      * @param boolean $isReplyEnabled
  342.      *
  343.      * @return Ticket
  344.      */
  345.     public function setIsReplyEnabled($isReplyEnabled)
  346.     {
  347.         $this->isReplyEnabled $isReplyEnabled;
  348.         return $this;
  349.     }
  350.     /**
  351.      * Get isReplyEnabled
  352.      *
  353.      * @return boolean
  354.      */
  355.     public function getIsReplyEnabled()
  356.     {
  357.         return $this->isReplyEnabled;
  358.     }
  359.     /**
  360.      * Set isStarred
  361.      *
  362.      * @param boolean $isStarred
  363.      *
  364.      * @return Ticket
  365.      */
  366.     public function setIsStarred($isStarred)
  367.     {
  368.         $this->isStarred $isStarred;
  369.         return $this;
  370.     }
  371.     /**
  372.      * Get isStarred
  373.      *
  374.      * @return boolean
  375.      */
  376.     public function getIsStarred()
  377.     {
  378.         return $this->isStarred;
  379.     }
  380.     /**
  381.      * Set isTrashed
  382.      *
  383.      * @param boolean $isTrashed
  384.      *
  385.      * @return Ticket
  386.      */
  387.     public function setIsTrashed($isTrashed)
  388.     {
  389.         $this->isTrashed $isTrashed;
  390.         return $this;
  391.     }
  392.     /**
  393.      * Get isTrashed
  394.      *
  395.      * @return boolean
  396.      */
  397.     public function getIsTrashed()
  398.     {
  399.         return $this->isTrashed;
  400.     }
  401.     /**
  402.      * Set isAgentViewed
  403.      *
  404.      * @param boolean $isAgentViewed
  405.      *
  406.      * @return Ticket
  407.      */
  408.     public function setIsAgentViewed($isAgentViewed)
  409.     {
  410.         $this->isAgentViewed $isAgentViewed;
  411.         return $this;
  412.     }
  413.     /**
  414.      * Get isAgentViewed
  415.      *
  416.      * @return boolean
  417.      */
  418.     public function getIsAgentViewed()
  419.     {
  420.         return $this->isAgentViewed;
  421.     }
  422.     /**
  423.      * Set isCustomerViewed
  424.      *
  425.      * @param boolean $isCustomerViewed
  426.      *
  427.      * @return Ticket
  428.      */
  429.     public function setIsCustomerViewed($isCustomerViewed)
  430.     {
  431.         $this->isCustomerViewed $isCustomerViewed;
  432.         return $this;
  433.     }
  434.     /**
  435.      * Get isCustomerViewed
  436.      *
  437.      * @return boolean
  438.      */
  439.     public function getIsCustomerViewed()
  440.     {
  441.         return $this->isCustomerViewed;
  442.     }
  443.     /**
  444.      * Set createdAt
  445.      *
  446.      * @param \DateTime $createdAt
  447.      *
  448.      * @return Ticket
  449.      */
  450.     public function setCreatedAt($createdAt)
  451.     {
  452.         $this->createdAt $createdAt;
  453.         return $this;
  454.     }
  455.     /**
  456.      * Get createdAt
  457.      *
  458.      * @return \DateTime
  459.      */
  460.     public function getCreatedAt()
  461.     {
  462.         return $this->createdAt;
  463.     }
  464.     /**
  465.      * Set updatedAt
  466.      *
  467.      * @param \DateTime $updatedAt
  468.      *
  469.      * @return Ticket
  470.      */
  471.     public function setUpdatedAt($updatedAt)
  472.     {
  473.         $this->updatedAt $updatedAt;
  474.         return $this;
  475.     }
  476.     /**
  477.      * Get updatedAt
  478.      *
  479.      * @return \DateTime
  480.      */
  481.     public function getUpdatedAt()
  482.     {
  483.         return $this->updatedAt;
  484.     }
  485.     /**
  486.      * Add thread
  487.      *
  488.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread
  489.      *
  490.      * @return Ticket
  491.      */
  492.     public function addThread(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread)
  493.     {
  494.         $this->threads[] = $thread;
  495.         return $this;
  496.     }
  497.     /**
  498.      * Remove thread
  499.      *
  500.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread
  501.      */
  502.     public function removeThread(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread)
  503.     {
  504.         $this->threads->removeElement($thread);
  505.     }
  506.     /**
  507.      * Get threads
  508.      *
  509.      * @return \Doctrine\Common\Collections\Collection
  510.      */
  511.     public function getThreads()
  512.     {
  513.         return $this->threads;
  514.     }
  515.     /**
  516.      * Add rating
  517.      *
  518.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating
  519.      *
  520.      * @return Ticket
  521.      */
  522.     public function addRating(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating)
  523.     {
  524.         $this->ratings[] = $rating;
  525.         return $this;
  526.     }
  527.     /**
  528.      * Remove rating
  529.      *
  530.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating
  531.      */
  532.     public function removeRating(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketRating $rating)
  533.     {
  534.         $this->ratings->removeElement($rating);
  535.     }
  536.     /**
  537.      * Get ratings
  538.      *
  539.      * @return \Doctrine\Common\Collections\Collection
  540.      */
  541.     public function getRatings()
  542.     {
  543.         return $this->ratings;
  544.     }
  545.     /**
  546.      * Add collaborators
  547.      *
  548.      * @param \Webkul\UserBundle\Entity\User $collaborators
  549.      * @return Ticket
  550.      */
  551.     public function addCollaborator(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $collaborators)
  552.     {
  553.         $this->collaborators[] = $collaborators;
  554.         return $this;
  555.     }
  556.     /**
  557.      * Remove collaborators
  558.      *
  559.      * @param \Webkul\UserBundle\Entity\User $collaborators
  560.      */
  561.     public function removeCollaborator(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $collaborators)
  562.     {
  563.         $this->collaborators->removeElement($collaborators);
  564.     }
  565.     /**
  566.      * Get collaborators
  567.      *
  568.      * @return \Doctrine\Common\Collections\Collection
  569.      */
  570.     public function getCollaborators()
  571.     {
  572.         return $this->collaborators;
  573.     }
  574.     /**
  575.      * Set status
  576.      *
  577.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus $status
  578.      *
  579.      * @return Ticket
  580.      */
  581.     public function setStatus(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus $status null)
  582.     {
  583.         $this->status $status;
  584.         return $this;
  585.     }
  586.     /**
  587.      * Get status
  588.      *
  589.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketStatus
  590.      */
  591.     public function getStatus()
  592.     {
  593.         return $this->status;
  594.     }
  595.     /**
  596.      * Set priority
  597.      *
  598.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority $priority
  599.      *
  600.      * @return Ticket
  601.      */
  602.     public function setPriority(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority $priority null)
  603.     {
  604.         $this->priority $priority;
  605.         return $this;
  606.     }
  607.     /**
  608.      * Get priority
  609.      *
  610.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketPriority
  611.      */
  612.     public function getPriority()
  613.     {
  614.         return $this->priority;
  615.     }
  616.     /**
  617.      * Set type
  618.      *
  619.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType $type
  620.      *
  621.      * @return Ticket
  622.      */
  623.     public function setType(\Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType $type null)
  624.     {
  625.         $this->type $type;
  626.         return $this;
  627.     }
  628.     /**
  629.      * Get type
  630.      *
  631.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\TicketType
  632.      */
  633.     public function getType()
  634.     {
  635.         return $this->type;
  636.     }
  637.     /**
  638.      * Set customer
  639.      *
  640.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\User $customer
  641.      *
  642.      * @return Ticket
  643.      */
  644.     public function setCustomer(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $customer null)
  645.     {
  646.         $this->customer $customer;
  647.         return $this;
  648.     }
  649.     /**
  650.      * Get customer
  651.      *
  652.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  653.      */
  654.     public function getCustomer()
  655.     {
  656.         return $this->customer;
  657.     }
  658.     /**
  659.      * Set agent
  660.      *
  661.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\User $agent
  662.      *
  663.      * @return Ticket
  664.      */
  665.     public function setAgent(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $agent null)
  666.     {
  667.         $this->agent $agent;
  668.         return $this;
  669.     }
  670.     /**
  671.      * Get agent
  672.      *
  673.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  674.      */
  675.     public function getAgent()
  676.     {
  677.         return $this->agent;
  678.     }
  679.     /**
  680.      * Set supportGroup
  681.      *
  682.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup
  683.      *
  684.      * @return Ticket
  685.      */
  686.     public function setSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup null)
  687.     {
  688.         $this->supportGroup $supportGroup;
  689.         return $this;
  690.     }
  691.     /**
  692.      * Get supportGroup
  693.      *
  694.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup
  695.      */
  696.     public function getSupportGroup()
  697.     {
  698.         return $this->supportGroup;
  699.     }
  700.     /**
  701.      * Set supportTeam
  702.      *
  703.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam
  704.      *
  705.      * @return Ticket
  706.      */
  707.     public function setSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam null)
  708.     {
  709.         $this->supportTeam $supportTeam;
  710.         return $this;
  711.     }
  712.     /**
  713.      * Get supportTeam
  714.      *
  715.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam
  716.      */
  717.     public function getSupportTeam()
  718.     {
  719.         return $this->supportTeam;
  720.     }
  721.     /**
  722.      * Add supportTag
  723.      *
  724.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag
  725.      *
  726.      * @return Ticket
  727.      */
  728.     public function addSupportTag(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag)
  729.     {
  730.         $this->supportTags[] = $supportTag;
  731.         return $this;
  732.     }
  733.     /**
  734.      * Remove supportTag
  735.      *
  736.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag
  737.      */
  738.     public function removeSupportTag(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Tag $supportTag)
  739.     {
  740.         $this->supportTags->removeElement($supportTag);
  741.     }
  742.     /**
  743.      * Get supportTags
  744.      *
  745.      * @return \Doctrine\Common\Collections\Collection
  746.      */
  747.     public function getSupportTags()
  748.     {
  749.         return $this->supportTags;
  750.     }
  751.     /**
  752.      * Add supportLabel
  753.      *
  754.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel
  755.      *
  756.      * @return Ticket
  757.      */
  758.     public function addSupportLabel(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel)
  759.     {
  760.         $this->supportLabels[] = $supportLabel;
  761.         return $this;
  762.     }
  763.     /**
  764.      * Remove supportLabel
  765.      *
  766.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel
  767.      */
  768.     public function removeSupportLabel(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportLabel $supportLabel)
  769.     {
  770.         $this->supportLabels->removeElement($supportLabel);
  771.     }
  772.     /**
  773.      * Get supportLabels
  774.      *
  775.      * @return \Doctrine\Common\Collections\Collection
  776.      */
  777.     public function getSupportLabels()
  778.     {
  779.         return $this->supportLabels;
  780.     }
  781.     /**
  782.      * Get formatted $createdAt
  783.      *
  784.      * @return \DateTime
  785.      */
  786.     public function getFormatedCreatedAt()
  787.     {
  788.         return $this->formatedCreatedAt;
  789.     }
  790. }