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

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * UserInstance
  6.  * @ORM\Entity(repositoryClass=null)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  * @ORM\Table(name="uv_user_instance")
  9.  */
  10. class UserInstance
  11. {
  12.     /**
  13.      * @var integer
  14.      * @ORM\Id()
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      * @ORM\Column(type="string", length=191)
  22.      */
  23.     private $source;
  24.     /**
  25.      * @var string
  26.      * @ORM\Column(type="string", length=191, nullable=true)
  27.      */
  28.     private $skypeId;
  29.     /**
  30.      * @var string
  31.      * @ORM\Column(type="string", length=191, nullable=true)
  32.      */
  33.     private $contactNumber;
  34.     /**
  35.      * @var string
  36.      * @ORM\Column(type="string", length=191, nullable=true)
  37.      */
  38.     private $designation;
  39.     /**
  40.      * @var string
  41.      * @ORM\Column(type="text", nullable=true)
  42.      */
  43.     private $signature;
  44.     /**
  45.      * @var string
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $profileImagePath;
  49.     /**
  50.      * @var \DateTime
  51.      * @ORM\Column(type="datetime")
  52.      */
  53.     private $createdAt;
  54.     /**
  55.      * @var \DateTime
  56.      * @ORM\Column(type="datetime")
  57.      */
  58.     private $updatedAt;
  59.     /**
  60.      * @var boolean
  61.      * @ORM\Column(type="boolean", options={"default": false})
  62.      */
  63.     private $isActive false;
  64.     /**
  65.      * @var boolean
  66.      * @ORM\Column(type="boolean", options={"default": false})
  67.      */
  68.     private $isVerified false;
  69.     /**
  70.      * @var boolean
  71.      * @ORM\Column(type="boolean", options={"default": false})
  72.      */
  73.     private $isStarred false;
  74.     /**
  75.      * @var string
  76.      * @ORM\Column(type="string", length=32, nullable=true)
  77.      */
  78.     private $ticketAccessLevel;
  79.     /**
  80.      * @var integer
  81.      */
  82.     private $defaultFiltering;
  83.     /**
  84.      * @var \Doctrine\Common\Collections\Collection
  85.      * @ORM\OneToMany(targetEntity="EmailTemplates", mappedBy="user", cascade={"remove"}, orphanRemoval=true)
  86.      */
  87.     private $userSavedReplies;
  88.     /**
  89.      * @var \Doctrine\Common\Collections\Collection
  90.      * @ORM\OneToMany(targetEntity="SavedFilters", mappedBy="user", cascade={"remove"}, orphanRemoval=true)
  91.      */
  92.     private $userSavedFilters;
  93.     /**
  94.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  95.      * @ORM\ManyToOne(targetEntity="User", inversedBy="userInstance")
  96.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
  97.      */
  98.     private $user;
  99.     /**
  100.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportRole
  101.      * @ORM\ManyToOne(targetEntity="SupportRole")
  102.      * @ORM\JoinColumn(name="supportRole_id", referencedColumnName="id", onDelete="CASCADE")
  103.      */
  104.     private $supportRole;
  105.     /**
  106.      * @var \Doctrine\Common\Collections\Collection
  107.      * @ORM\ManyToMany(targetEntity="SupportPrivilege", inversedBy="users")
  108.      * @ORM\JoinTable(name="uv_user_support_privileges",
  109.      *      joinColumns={@ORM\JoinColumn(name="userInstanceId", referencedColumnName="id", onDelete="CASCADE")},
  110.      *      inverseJoinColumns={@ORM\JoinColumn(name="supportPrivilegeId", referencedColumnName="id", onDelete="CASCADE")}
  111.      * )
  112.      */
  113.     private $supportPrivileges;
  114.     /**
  115.      * @var \Doctrine\Common\Collections\Collection
  116.      * @ORM\ManyToMany(targetEntity="SupportTeam", inversedBy="users")
  117.      * @ORM\JoinTable(name="uv_user_support_teams",
  118.      *      joinColumns={@ORM\JoinColumn(name="userInstanceId", referencedColumnName="id", onDelete="CASCADE")},
  119.      *      inverseJoinColumns={@ORM\JoinColumn(name="supportTeamId", referencedColumnName="id", onDelete="CASCADE")})
  120.      */
  121.     private $supportTeams;
  122.     /**
  123.      * @var \Doctrine\Common\Collections\Collection
  124.      * @ORM\ManyToMany(targetEntity="SupportGroup", inversedBy="users")
  125.      * @ORM\JoinTable(name="uv_user_support_groups",
  126.      *      joinColumns={@ORM\JoinColumn(name="userInstanceId", referencedColumnName="id", onDelete="CASCADE")},
  127.      *      inverseJoinColumns={@ORM\JoinColumn(name="supportGroupId", referencedColumnName="id", onDelete="CASCADE")})
  128.      */
  129.     private $supportGroups;
  130.     /**
  131.      * @var \Doctrine\Common\Collections\Collection
  132.      * @ORM\ManyToMany(targetEntity="SupportTeam", inversedBy="leads")
  133.      * @ORM\JoinTable(name="uv_lead_support_teams",
  134.      *      joinColumns={@ORM\JoinColumn(name="leadUserInstanceId", referencedColumnName="id", onDelete="CASCADE")},
  135.      *      inverseJoinColumns={@ORM\JoinColumn(name="supportTeamId", referencedColumnName="id", onDelete="CASCADE")})
  136.      */
  137.     private $leadSupportTeams;
  138.     /**
  139.      * @var \Doctrine\Common\Collections\Collection
  140.      * @ORM\ManyToMany(targetEntity="SupportGroup", inversedBy="admins")
  141.      * @ORM\JoinTable(name="uv_admin_support_groups",
  142.      *      joinColumns={@ORM\JoinColumn(name="adminUserInstanceId", referencedColumnName="id", onDelete="CASCADE")},
  143.      *      inverseJoinColumns={@ORM\JoinColumn(name="supportGroupId", referencedColumnName="id", onDelete="CASCADE")})
  144.      */
  145.     private $adminSupportGroups;
  146.     /**
  147.      * Constructor
  148.      */
  149.     public function __construct()
  150.     {
  151.         $this->userSavedReplies = new \Doctrine\Common\Collections\ArrayCollection();
  152.         $this->userSavedFilters = new \Doctrine\Common\Collections\ArrayCollection();
  153.         $this->supportPrivileges = new \Doctrine\Common\Collections\ArrayCollection();
  154.         $this->supportTeams = new \Doctrine\Common\Collections\ArrayCollection();
  155.         $this->supportGroups = new \Doctrine\Common\Collections\ArrayCollection();
  156.         $this->leadSupportTeams = new \Doctrine\Common\Collections\ArrayCollection();
  157.         $this->adminSupportGroups = new \Doctrine\Common\Collections\ArrayCollection();
  158.     }
  159.     /**
  160.      * Get id
  161.      *
  162.      * @return integer
  163.      */
  164.     public function getId()
  165.     {
  166.         return $this->id;
  167.     }
  168.     /**
  169.      * Set source
  170.      *
  171.      * @param string $source
  172.      *
  173.      * @return UserInstance
  174.      */
  175.     public function setSource($source)
  176.     {
  177.         $this->source $source;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get source
  182.      *
  183.      * @return string
  184.      */
  185.     public function getSource()
  186.     {
  187.         return $this->source;
  188.     }
  189.     /**
  190.      * Set skypeId
  191.      *
  192.      * @param string $skypeId
  193.      *
  194.      * @return UserInstance
  195.      */
  196.     public function setSkypeId($skypeId)
  197.     {
  198.         $this->skypeId $skypeId;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Get skypeId
  203.      *
  204.      * @return string
  205.      */
  206.     public function getSkypeId()
  207.     {
  208.         return $this->skypeId;
  209.     }
  210.     /**
  211.      * Set contactNumber
  212.      *
  213.      * @param string $contactNumber
  214.      *
  215.      * @return UserInstance
  216.      */
  217.     public function setContactNumber($contactNumber)
  218.     {
  219.         $this->contactNumber $contactNumber;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get contactNumber
  224.      *
  225.      * @return string
  226.      */
  227.     public function getContactNumber()
  228.     {
  229.         return $this->contactNumber;
  230.     }
  231.     /**
  232.      * Set designation
  233.      *
  234.      * @param string $designation
  235.      *
  236.      * @return UserInstance
  237.      */
  238.     public function setDesignation($designation)
  239.     {
  240.         $this->designation $designation;
  241.         return $this;
  242.     }
  243.     /**
  244.      * Get designation
  245.      *
  246.      * @return string
  247.      */
  248.     public function getDesignation()
  249.     {
  250.         return $this->designation;
  251.     }
  252.     /**
  253.      * Set signature
  254.      *
  255.      * @param string $signature
  256.      *
  257.      * @return UserInstance
  258.      */
  259.     public function setSignature($signature)
  260.     {
  261.         $this->signature $signature;
  262.         return $this;
  263.     }
  264.     /**
  265.      * Get signature
  266.      *
  267.      * @return string
  268.      */
  269.     public function getSignature()
  270.     {
  271.         return $this->signature;
  272.     }
  273.     /**
  274.      * Set profileImagePath
  275.      *
  276.      * @param string $profileImagePath
  277.      *
  278.      * @return UserInstance
  279.      */
  280.     public function setProfileImagePath($profileImagePath)
  281.     {
  282.         $this->profileImagePath $profileImagePath;
  283.         return $this;
  284.     }
  285.     /**
  286.      * Get profileImagePath
  287.      *
  288.      * @return string
  289.      */
  290.     public function getProfileImagePath()
  291.     {
  292.         return $this->profileImagePath;
  293.     }
  294.     /**
  295.      * Set createdAt
  296.      *
  297.      * @param \DateTime $createdAt
  298.      *
  299.      * @return UserInstance
  300.      */
  301.     public function setCreatedAt($createdAt)
  302.     {
  303.         $this->createdAt $createdAt;
  304.         return $this;
  305.     }
  306.     /**
  307.      * Get createdAt
  308.      *
  309.      * @return \DateTime
  310.      */
  311.     public function getCreatedAt()
  312.     {
  313.         return $this->createdAt;
  314.     }
  315.     /**
  316.      * Set updatedAt
  317.      *
  318.      * @param \DateTime $updatedAt
  319.      *
  320.      * @return UserInstance
  321.      */
  322.     public function setUpdatedAt($updatedAt)
  323.     {
  324.         $this->updatedAt $updatedAt;
  325.         return $this;
  326.     }
  327.     /**
  328.      * Get updatedAt
  329.      *
  330.      * @return \DateTime
  331.      */
  332.     public function getUpdatedAt()
  333.     {
  334.         return $this->updatedAt;
  335.     }
  336.     /**
  337.      * Set isActive
  338.      *
  339.      * @param boolean $isActive
  340.      *
  341.      * @return UserInstance
  342.      */
  343.     public function setIsActive($isActive)
  344.     {
  345.         $this->isActive $isActive;
  346.         return $this;
  347.     }
  348.     /**
  349.      * Get isActive
  350.      *
  351.      * @return boolean
  352.      */
  353.     public function getIsActive()
  354.     {
  355.         return $this->isActive;
  356.     }
  357.     /**
  358.      * Set isVerified
  359.      *
  360.      * @param boolean $isVerified
  361.      *
  362.      * @return UserInstance
  363.      */
  364.     public function setIsVerified($isVerified)
  365.     {
  366.         $this->isVerified $isVerified;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get isVerified
  371.      *
  372.      * @return boolean
  373.      */
  374.     public function getIsVerified()
  375.     {
  376.         return $this->isVerified;
  377.     }
  378.     /**
  379.      * Set isStarred
  380.      *
  381.      * @param boolean $isStarred
  382.      *
  383.      * @return UserInstance
  384.      */
  385.     public function setIsStarred($isStarred)
  386.     {
  387.         $this->isStarred $isStarred;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get isStarred
  392.      *
  393.      * @return boolean
  394.      */
  395.     public function getIsStarred()
  396.     {
  397.         return $this->isStarred;
  398.     }
  399.     /**
  400.      * Set ticketAccessLevel
  401.      *
  402.      * @param string $ticketAccessLevel
  403.      *
  404.      * @return UserInstance
  405.      */
  406.     public function setTicketAccessLevel($ticketAccessLevel)
  407.     {
  408.         $this->ticketAccessLevel $ticketAccessLevel;
  409.         return $this;
  410.     }
  411.     /**
  412.      * Get ticketAccessLevel
  413.      *
  414.      * @return string
  415.      */
  416.     public function getTicketAccessLevel()
  417.     {
  418.         return $this->ticketAccessLevel;
  419.     }
  420.     /**
  421.      * Set defaultFiltering
  422.      *
  423.      * @param integer $defaultFiltering
  424.      * @return UserInstance
  425.      */
  426.     public function setDefaultFiltering($defaultFiltering)
  427.     {
  428.         $this->defaultFiltering $defaultFiltering;
  429.         return $this;
  430.     }
  431.     /**
  432.      * Get defaultFiltering
  433.      *
  434.      * @return integer 
  435.      */
  436.     public function getDefaultFiltering()
  437.     {
  438.         return $this->defaultFiltering;
  439.     }
  440.     /**
  441.      * Add userSavedReply
  442.      *
  443.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\EmailTemplates $userSavedReply
  444.      *
  445.      * @return UserInstance
  446.      */
  447.     public function addUserSavedReply(\Webkul\UVDesk\CoreFrameworkBundle\Entity\EmailTemplates $userSavedReply)
  448.     {
  449.         $this->userSavedReplies[] = $userSavedReply;
  450.         return $this;
  451.     }
  452.     /**
  453.      * Remove userSavedReply
  454.      *
  455.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\EmailTemplates $userSavedReply
  456.      */
  457.     public function removeUserSavedReply(\Webkul\UVDesk\CoreFrameworkBundle\Entity\EmailTemplates $userSavedReply)
  458.     {
  459.         $this->userSavedReplies->removeElement($userSavedReply);
  460.     }
  461.     /**
  462.      * Get userSavedReplies
  463.      *
  464.      * @return \Doctrine\Common\Collections\Collection
  465.      */
  466.     public function getUserSavedReplies()
  467.     {
  468.         return $this->userSavedReplies;
  469.     }
  470.     /**
  471.      * Add userSavedFilter
  472.      *
  473.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SavedFilters $userSavedFilter
  474.      *
  475.      * @return UserInstance
  476.      */
  477.     public function addUserSavedFilter(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SavedFilters $userSavedFilter)
  478.     {
  479.         $this->userSavedFilters[] = $userSavedFilter;
  480.         return $this;
  481.     }
  482.     /**
  483.      * Remove userSavedFilter
  484.      *
  485.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SavedFilters $userSavedFilter
  486.      */
  487.     public function removeUserSavedFilter(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SavedFilters $userSavedFilter)
  488.     {
  489.         $this->userSavedFilters->removeElement($userSavedFilter);
  490.     }
  491.     /**
  492.      * Get userSavedFilters
  493.      *
  494.      * @return \Doctrine\Common\Collections\Collection
  495.      */
  496.     public function getUserSavedFilters()
  497.     {
  498.         return $this->userSavedFilters;
  499.     }
  500.     /**
  501.      * Set user
  502.      *
  503.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\User $user
  504.      *
  505.      * @return UserInstance
  506.      */
  507.     public function setUser(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $user null)
  508.     {
  509.         $this->user $user;
  510.         return $this;
  511.     }
  512.     /**
  513.      * Get user
  514.      *
  515.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  516.      */
  517.     public function getUser()
  518.     {
  519.         return $this->user;
  520.     }
  521.     /**
  522.      * Set supportRole
  523.      *
  524.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportRole $supportRole
  525.      *
  526.      * @return UserInstance
  527.      */
  528.     public function setSupportRole(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportRole $supportRole null)
  529.     {
  530.         $this->supportRole $supportRole;
  531.         return $this;
  532.     }
  533.     /**
  534.      * Get supportRole
  535.      *
  536.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportRole
  537.      */
  538.     public function getSupportRole()
  539.     {
  540.         return $this->supportRole;
  541.     }
  542.     /**
  543.      * Add supportPrivilege
  544.      *
  545.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportPrivilege $supportPrivilege
  546.      *
  547.      * @return UserInstance
  548.      */
  549.     public function addSupportPrivilege(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportPrivilege $supportPrivilege)
  550.     {
  551.         $this->supportPrivileges[] = $supportPrivilege;
  552.         return $this;
  553.     }
  554.     /**
  555.      * Remove supportPrivilege
  556.      *
  557.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportPrivilege $supportPrivilege
  558.      */
  559.     public function removeSupportPrivilege(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportPrivilege $supportPrivilege)
  560.     {
  561.         $this->supportPrivileges->removeElement($supportPrivilege);
  562.     }
  563.     /**
  564.      * Get supportPrivileges
  565.      *
  566.      * @return \Doctrine\Common\Collections\Collection
  567.      */
  568.     public function getSupportPrivileges()
  569.     {
  570.         return $this->supportPrivileges;
  571.     }
  572.     /**
  573.      * Add supportTeam
  574.      *
  575.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam
  576.      *
  577.      * @return UserInstance
  578.      */
  579.     public function addSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam)
  580.     {
  581.         $this->supportTeams[] = $supportTeam;
  582.         return $this;
  583.     }
  584.     /**
  585.      * Remove supportTeam
  586.      *
  587.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam
  588.      */
  589.     public function removeSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $supportTeam)
  590.     {
  591.         $this->supportTeams->removeElement($supportTeam);
  592.     }
  593.     /**
  594.      * Get supportTeams
  595.      *
  596.      * @return \Doctrine\Common\Collections\Collection
  597.      */
  598.     public function getSupportTeams()
  599.     {
  600.         return $this->supportTeams;
  601.     }
  602.     /**
  603.      * Add supportGroup
  604.      *
  605.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup
  606.      *
  607.      * @return UserInstance
  608.      */
  609.     public function addSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup)
  610.     {
  611.         $this->supportGroups[] = $supportGroup;
  612.         return $this;
  613.     }
  614.     /**
  615.      * Remove supportGroup
  616.      *
  617.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup
  618.      */
  619.     public function removeSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $supportGroup)
  620.     {
  621.         $this->supportGroups->removeElement($supportGroup);
  622.     }
  623.     /**
  624.      * Get supportGroups
  625.      *
  626.      * @return \Doctrine\Common\Collections\Collection
  627.      */
  628.     public function getSupportGroups()
  629.     {
  630.         return $this->supportGroups;
  631.     }
  632.     /**
  633.      * Add leadSupportTeam
  634.      *
  635.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $leadSupportTeam
  636.      *
  637.      * @return UserInstance
  638.      */
  639.     public function addLeadSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $leadSupportTeam)
  640.     {
  641.         $this->leadSupportTeams[] = $leadSupportTeam;
  642.         return $this;
  643.     }
  644.     /**
  645.      * Remove leadSupportTeam
  646.      *
  647.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $leadSupportTeam
  648.      */
  649.     public function removeLeadSupportTeam(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportTeam $leadSupportTeam)
  650.     {
  651.         $this->leadSupportTeams->removeElement($leadSupportTeam);
  652.     }
  653.     /**
  654.      * Get leadSupportTeams
  655.      *
  656.      * @return \Doctrine\Common\Collections\Collection
  657.      */
  658.     public function getLeadSupportTeams()
  659.     {
  660.         return $this->leadSupportTeams;
  661.     }
  662.     /**
  663.      * Add adminSupportGroup
  664.      *
  665.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $adminSupportGroup
  666.      *
  667.      * @return UserInstance
  668.      */
  669.     public function addAdminSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $adminSupportGroup)
  670.     {
  671.         $this->adminSupportGroups[] = $adminSupportGroup;
  672.         return $this;
  673.     }
  674.     /**
  675.      * Remove adminSupportGroup
  676.      *
  677.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $adminSupportGroup
  678.      */
  679.     public function removeAdminSupportGroup(\Webkul\UVDesk\CoreFrameworkBundle\Entity\SupportGroup $adminSupportGroup)
  680.     {
  681.         $this->adminSupportGroups->removeElement($adminSupportGroup);
  682.     }
  683.     /**
  684.      * Get adminSupportGroups
  685.      *
  686.      * @return \Doctrine\Common\Collections\Collection
  687.      */
  688.     public function getAdminSupportGroups()
  689.     {
  690.         return $this->adminSupportGroups;
  691.     }
  692.     /**
  693.      * @ORM\PrePersist
  694.      *
  695.      * Initialize timestamps for createdAt and updatedAt fields when persisting the UserInstance to database
  696.      * the first time.
  697.      *
  698.      * @return UserInstance
  699.     */
  700.     public function initializeUserTimestamp()
  701.     {
  702.         $this->createdAt $this->updatedAt = new \DateTime('now');
  703.         return $this;
  704.     }
  705.     /**
  706.      * @ORM\PreUpdate
  707.      *
  708.      * Updates the updatedAt field when persisting the UserInstance to database.
  709.      *
  710.      * @return UserInstance
  711.     */
  712.     public function updateUserTimestamp()
  713.     {
  714.         $this->updatedAt = new \DateTime('now');
  715.         return $this;
  716.     }
  717.     /**
  718.      * Get user partial data
  719.      *
  720.      * @return array
  721.      */
  722.     public function getPartialDetails()
  723.     {
  724.         return [
  725.             'id' => $this->getUser()->getId(),
  726.             'email' => $this->getUser()->getEmail(),
  727.             'name' => $this->getUser()->getFullName(),
  728.             'firstName' => $this->getUser()->getFirstName(),
  729.             'lastName' => $this->getUser()->getLastName(),
  730.             'contactNumber' => $this->getContactNumber(),
  731.             'thumbnail' => $this->getProfileImagePath(),
  732.         ];
  733.     }
  734. }