protected function objectToArray( $value, $valueConverter = null ) {
		if ( $valueConverter !== null && is_object( $value ) ) {
			$value = call_user_func( $valueConverter, $value );
		}

		return $value;
	}
protected function objectToArray( $value, $valueConverter = null ) {
		if ( $valueConverter !== null && is_object( $value ) ) {
			$value = call_user_func( $valueConverter, $value );
		}

		return $value;
	}
protected function objectToArray ( $ value , $ valueConverter = null ) { if ( $ valueConverter !== null && is_object ( $ value ) ) { $ value = call_user_func ( $ valueConverter , $ value ) ; } return $ value ; }
Converts an object to an array using the given callback function.
If the convert callback is null or the value is not an object, the value is returned
unchanged. The Converter callback is intended for converting the value into an array,
but may also just leave the value unchanged if it cannot handle it.

@since 0.5

@param mixed $value The value to convert
@param callable|null $valueConverter The converter to use if $value is an object

@return mixed The $value unchanged, or the return value of calling $valueConverter on $value.
Converts an object to an array using the given callback function . If the convert callback is null or the value is not an object the value is returned unchanged . The Converter callback is intended for converting the value into an array but may also just leave the value unchanged if it cannot handle it .