date_create = new DateTime(); } public function getID() { return $this->id; } public function setDateCreate($date_create) { $this->date_create = $date_create; return $this; } public function getDateCreate() { return $this->date_create; } public function setStatus($status) { $this->status = $status; return $this; } public function getStatus() { return $this->status; } public function getStatusText() { $statuses = TicketStatus::getCollection(); return $statuses[$this->status] ?? ""; } public function setTicketType($ticket_type) { $this->ticket_type = $ticket_type; return $this; } public function getTicketType() { return $this->ticket_type; } public function setOtherTicketType($other_ticket_type) { $this->other_ticket_type = $other_ticket_type; return $this; } public function getOtherTicketType() { return $this->other_ticket_type; } public function getTicketTypeText() { if ($this->new_ticket_type != null) return $this->new_ticket_type->getName(); if ($this->ticket_type == LegacyTicketType::OTHER) { return $this->other_ticket_type; } else { $types = LegacyTicketType::getCollection(); return $types[$this->ticket_type] ?? ""; } } public function setFirstName($first_name) { $this->first_name = $first_name; return $this; } public function getFirstName() { return $this->first_name; } public function setLastName($last_name) { $this->last_name = $last_name; return $this; } public function getLastName() { return $this->last_name; } public function setContactNumber($num) { $this->contact_num = $num; return $this; } public function getContactNumber() { return $this->contact_num; } public function setDetails($details) { $this->details = $details; return $this; } public function getDetails() { return $this->details; } public function setPlateNumber($plate_number) { $this->plate_number = $plate_number; return $this; } public function getPlateNumber() { return $this->plate_number; } public function setCreatedBy(User $created_by) { $this->created_by = $created_by; return $this; } public function getCreatedBy() { return $this->created_by; } public function setCustomer(Customer $customer) { $this->customer = $customer; return $this; } public function getCustomer() { return $this->customer; } public function setJobOrder(JobOrder $job_order) { $this->job_order = $job_order; return $this; } public function getJobOrder() { return $this->job_order; } public function setSourceOfAwareness($source_of_awareness) { $this->source_of_awareness = $source_of_awareness; return $this; } public function getSourceOfAwareness() { return $this->source_of_awareness; } public function setRemarks($remarks) { $this->remarks = $remarks; return $this; } public function getRemarks() { return $this->remarks; } public function setNewTicketType(TicketType $new_ticket_type = null) { $this->new_ticket_type = $new_ticket_type; return $this; } public function getNewTicketType() { return $this->new_ticket_type; } public function setSubTicketType(SubTicketType $subticket_type = null) { $this->subticket_type = $subticket_type; return $this; } public function getSubTicketType() { return $this->subticket_type; } }