customer_id); } public function getDisplayAddress($fields = ["address_1", "address_2", "city", "county", "postal_code", "state", "country"]) { $parts = []; foreach($fields as $field) { $parts[] = $this->$field; } return implode(", ", array_filter($parts)); } public function getGeolocation() { return [$this->latitude, $this->longitude]; } } ?>