$value ) { if ( property_exists( $this, $key ) ) { $this->{"set_$key"}( $value ); } } } /** * Gets the account ticket ID. * * @since 1.98.0 * * @return string */ public function get_id() { return $this->id; } /** * Sets the account ticket ID. * * @since 1.98.0 * * @param string $id Account ticket ID. */ public function set_id( $id ) { $this->id = (string) $id; } /** * Gets the property name. * * @since 1.98.0 * * @return string */ public function get_property_name() { return $this->property_name; } /** * Sets the property name. * * @since 1.98.0 * * @param string $property_name Property name. */ public function set_property_name( $property_name ) { $this->property_name = (string) $property_name; } /** * Gets the data stream name. * * @since 1.98.0 * * @return string */ public function get_data_stream_name() { return $this->data_stream_name; } /** * Sets the data stream name. * * @since 1.98.0 * * @param string $data_stream_name Data stream name. */ public function set_data_stream_name( $data_stream_name ) { $this->data_stream_name = (string) $data_stream_name; } /** * Gets the timezone. * * @since 1.98.0 * * @return string */ public function get_timezone() { return $this->timezone; } /** * Sets the timezone. * * @since 1.98.0 * * @param string $timezone Timezone. */ public function set_timezone( $timezone ) { $this->timezone = (string) $timezone; } /** * Gets the enabled state of enhanced measurement for the data stream. * * @since 1.111.0 * * @return bool $enabled Enabled state. */ public function get_enhanced_measurement_stream_enabled() { return $this->enhanced_measurement_stream_enabled; } /** * Sets the enabled state of enhanced measurement for the data stream. * * @since 1.111.0 * * @param bool $enabled Enabled state. */ public function set_enhanced_measurement_stream_enabled( $enabled ) { $this->enhanced_measurement_stream_enabled = (bool) $enabled; } /** * Gets the array representation of the instance values. * * @since 1.98.0 * * @return array */ public function to_array() { return get_object_vars( $this ); } }