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->ticket_type == TicketType::OTHER) { return $this->other_ticket_type; } else { $types = TicketType::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; } }