timestamp; } return new self( termName: $data['term_name'], description: $data['description'] ?? '', dateCreate: (int) $dateCreate, userId: (int) $data['user_id'], status: (bool) ($data['status'] ?? false), type: $data['type'] ?? 'vnnic_06', ); } public function toArray(): array { return [ 'term_name' => $this->termName, 'description' => $this->description, 'date_create' => $this->dateCreate, 'user_id' => $this->userId, 'status' => $this->status, ]; } }