<?phpnamespace App\Entity;use App\Repository\TicketsRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass=TicketsRepository::class) */class Tickets{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="tickets") */ private $user; /** * @ORM\Column(type="string", length=255) */ private $subject; /** * @ORM\Column(type="string", length=255) */ private $description; /** * @ORM\Column(type="string", length=255) */ private $notes; /** * @ORM\Column(type="boolean") */ private $deleted; /** * @ORM\Column(type="datetime") */ private $updated_at; /** * @ORM\Column(type="datetime") */ private $created_at; /** * @ORM\ManyToOne(targetEntity=Users::class) * @ORM\JoinColumn(nullable=false) */ private $created_by; /** * @ORM\ManyToOne(targetEntity=Users::class) * @ORM\JoinColumn(nullable=false) */ private $update_by; /** * @ORM\ManyToOne(targetEntity=Accounts::class) */ private $account; /** * @ORM\ManyToOne(targetEntity=Departments::class) * @ORM\JoinColumn(nullable=false) */ private $departments; /** * @ORM\ManyToOne(targetEntity=Status::class) * @ORM\JoinColumn(nullable=false) */ private $status; /** * @ORM\ManyToOne(targetEntity=Priorities::class) * @ORM\JoinColumn(nullable=false) */ private $priorities; /** * @ORM\ManyToOne(targetEntity=Categories::class) * @ORM\JoinColumn(nullable=false) */ private $categories; /** * @ORM\Column(type="boolean", nullable=true) */ private $active; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $token; public function __construct() { $this->contacts = new ArrayCollection(); $this->replys = new ArrayCollection(); $this->uploads = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getUser(): ?Users { return $this->user; } public function setUser(?Users $user): self { $this->user = $user; return $this; } public function getSubject(): ?string { return $this->subject; } public function setSubject(string $subject): self { $this->subject = $subject; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getNotes(): ?string { return $this->notes; } public function setNotes(string $notes): self { $this->notes = $notes; return $this; } public function isDeleted(): ?bool { return $this->deleted; } public function setDeleted(bool $deleted): self { $this->deleted = $deleted; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updated_at; } public function setUpdatedAt(\DateTimeInterface $updated_at): self { $this->updated_at = $updated_at; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->created_at; } public function setCreatedAt(\DateTimeInterface $created_at): self { $this->created_at = $created_at; return $this; } public function getCreatedBy(): ?users { return $this->created_by; } public function setCreatedBy(?users $created_by): self { $this->created_by = $created_by; return $this; } public function getUpdateBy(): ?users { return $this->update_by; } public function setUpdateBy(?users $update_by): self { $this->update_by = $update_by; return $this; } public function getAccount(): ?accounts { return $this->account; } public function setAccount(?accounts $account): self { $this->account = $account; return $this; } /** * @return Collection<int, replys> */ public function getReplys(): Collection { return $this->replys; } public function addReply(replys $reply): self { if (!$this->replys->contains($reply)) { $this->replys[] = $reply; } return $this; } public function removeReply(replys $reply): self { $this->replys->removeElement($reply); return $this; } /** * @return Collection<int, uploads> */ public function getUploads(): Collection { return $this->uploads; } public function addUpload(uploads $upload): self { if (!$this->uploads->contains($upload)) { $this->uploads[] = $upload; } return $this; } public function removeUpload(uploads $upload): self { $this->uploads->removeElement($upload); return $this; } public function getDepartments(): ?departments { return $this->departments; } public function setDepartments(?departments $departments): self { $this->departments = $departments; return $this; } public function getStatus(): ?status { return $this->status; } public function setStatus(?status $status): self { $this->status = $status; return $this; } public function getPriorities(): ?priorities { return $this->priorities; } public function setPriorities(?priorities $priorities): self { $this->priorities = $priorities; return $this; } public function getCategories(): ?categories { return $this->categories; } public function setCategories(?categories $categories): self { $this->categories = $categories; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(?bool $active): self { $this->active = $active; return $this; } public function getToken(): ?string { return $this->token; } public function setToken(?string $token): self { $this->token = $token; return $this; }}