id = $id; $this->name = $name; $this->phone_number = $phone_number; $this->phone_number_verified_time = $phone_number_verified_time; $this->email_address = $email_address; $this->ssn = $ssn; $this->date_of_birth = $date_of_birth; } public function toArray(): array { return \array_filter( [ "client_user_id" => $this->id, "legal_name" => $this->name, "phone_number" => $this->phone_number, "phone_number_verified_time" => $this->phone_number_verified_time, "email_address" => $this->email_address, "ssn" => $this->ssn, "date_of_birth" => $this->date_of_birth ], function($value): bool { return $value !== null; } ); } }