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

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Webkul\UVDesk\CoreFrameworkBundle\Entity\Ticket;
  5. use Webkul\UVDesk\CoreFrameworkBundle\Entity\User;
  6. /**
  7.  * @ORM\Entity(repositoryClass="Webkul\UVDesk\CoreFrameworkBundle\Repository\AgentActivityRepository")
  8.  */
  9. class AgentActivity
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="Webkul\UVDesk\CoreFrameworkBundle\Entity\User")
  19.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  20.      */
  21.     private $agent;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="Webkul\UVDesk\CoreFrameworkBundle\Entity\Ticket")
  24.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  25.      */
  26.     private $ticket;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $agentName;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $customerName;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $threadType;
  39.     /**
  40.      * @ORM\Column(type="datetime")
  41.      */
  42.     private $createdAt;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getAgent(): ?User
  48.     {
  49.         return $this->agent;
  50.     }
  51.     public function setAgent(?User $agent): self
  52.     {
  53.         $this->agent $agent;
  54.         return $this;
  55.     }
  56.     public function getTicket(): ?Ticket
  57.     {
  58.         return $this->ticket;
  59.     }
  60.     public function setTicket(?Ticket $ticket): self
  61.     {
  62.         $this->ticket $ticket;
  63.         return $this;
  64.     }
  65.     public function getAgentName(): ?string
  66.     {
  67.         return $this->agentName;
  68.     }
  69.     public function setAgentName(?string $agentName): self
  70.     {
  71.         $this->agentName $agentName;
  72.         return $this;
  73.     }
  74.     public function getCustomerName(): ?string
  75.     {
  76.         return $this->customerName;
  77.     }
  78.     public function setCustomerName(?string $customerName): self
  79.     {
  80.         $this->customerName $customerName;
  81.         return $this;
  82.     }
  83.     public function getThreadType(): ?string
  84.     {
  85.         return $this->threadType;
  86.     }
  87.     public function setThreadType(?string $threadType): self
  88.     {
  89.         $this->threadType $threadType;
  90.         return $this;
  91.     }
  92.     public function getCreatedAt(): ?\DateTimeInterface
  93.     {
  94.         return $this->createdAt;
  95.     }
  96.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  97.     {
  98.         $this->createdAt $createdAt;
  99.         return $this;
  100.     }
  101. }